kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd Snyder <tsny...@blackberry.com>
Subject RE: Kafka producer input file
Date Tue, 14 Jul 2015 14:41:35 GMT
You can also checkout Klogger (https://github.com/blackberry/Klogger), which will take input
from a TCP port or a file.

Todd.

-----Original Message-----
From: Jason Gustafson [mailto:jason@confluent.io] 
Sent: Monday, July 13, 2015 20:09
To: users@kafka.apache.org
Subject: Re: Kafka producer input file

There is also kafkacat (https://github.com/edenhill/kafkacat), which
exposes a few more knobs than the console producer.

-Jason

On Sat, Jul 11, 2015 at 6:40 PM, tsoliman@gmail.com <tsoliman@gmail.com>
wrote:

> Thank you, Shayne.
>
> On Sat, Jul 11, 2015 at 6:35 PM, Shayne S <shaynest113@gmail.com> wrote:
>
> > The console producer will read from STDIN. Assuming you are using 0.8.2,
> > you can pipe the file right in like this:
> >
> > kafka-console-produce.sh --broker-list localhost:9092 --topic my_topic
> > --new-producer < my_file.txt
> >
> > On Sat, Jul 11, 2015 at 6:32 PM, tsoliman@gmail.com <tsoliman@gmail.com>
> > wrote:
> >
> > > Hello, I am trying to setup a Kafka producer to take input from a file
> > > instead of standard input. According to Kafka documentation
> > > <https://kafka.apache.org/documentation.html>:
> > >
> > > Kafka comes with a command line client that will take input from a file
> > or
> > > > from standard input and send it out as messages to the Kafka cluster.
> > >
> > >
> > > I could not seem to find any documentation on how the the command line
> > > client can read from a file. Could you please help?
> > >
> > > Thanks,
> > > Tim
> > >
> >
>
Mime
View raw message