If you are looking for sample code below are the links for Producers and Consumers using kafka java api's
https://cwiki.apache.org/confluence/display/KAFKA/0.8.0+Producer+Example https://cwiki.apache.org/confluence/display/KAFKA/0.8.0+SimpleConsumer+Example As far as extracting tgz file, I guess this is not the right forum for that question :-) Just google it! Thanks, Sri On Thu, Mar 19, 2015 at 5:18 AM, kishore kumar <akishore...@gmail.com> wrote: > I have a .tgz file, I want to extract and read the contents in each file > and load to kafka using java, > anybody help me on this ? > > > -- > Thanks, > Kishore. > -- Srikanth