You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by kishore kumar <ak...@gmail.com> on 2015/03/19 10:18:42 UTC
Java Code for Kafka
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.
Re: Java Code for Kafka
Posted by Srikanth Madhava <sr...@gmail.com>.
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 <ak...@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