By default the output goes to standard output, but you can redirect
that to a file:
kafkacat -b your.broker.com:yourPORT -t yourtopic -c max-messages >
/your/full/path/file.csv
On Wed, Feb 26, 2020 at 4:45 AM Doaa K. Amin
<doaaelkordy@yahoo.com.invalid> wrote:
>
> Hi Richard,
> Thanks for answering. Just one more thing: do I add to the command that you've written the path and name of the CSV file that I want to write the data to? Please, advise.
> Thanks,Doaa.
>
> Sent from Yahoo Mail on Android
>
> On Tue, Feb 25, 2020 at 6:20 PM, Richard Rossel<henhiskan@gmail.com> wrote: you can use kafka-console-consumer that comes with your kafka
> deployment, or you can install kafkacat (which I found more simple to
> use)
>
> brew install kafkacat
>
> kafkacat -b your.broker.com:yourPORT -t yourtopic -c max-messages
>
>
> On Tue, Feb 25, 2020 at 9:03 AM Doaa K. Amin
> <doaaelkordy@yahoo.com.invalid> wrote:
> >
> > Hello,
> > I'm new to kafka and I'd like to write data from kafka to a CSV file in a Mac. Please, advise.
> > Thank You & Kindest Regards,Doaa.
>
>
>
> --
> Richard Rossel
> Atlanta - GA
>
--
Richard Rossel
Atlanta - GA
that to a file:
kafkacat -b your.broker.com:yourPORT -t yourtopic -c max-messages >
/your/full/path/file.csv
On Wed, Feb 26, 2020 at 4:45 AM Doaa K. Amin
<doaaelkordy@yahoo.com.invalid> wrote:
>
> Hi Richard,
> Thanks for answering. Just one more thing: do I add to the command that you've written the path and name of the CSV file that I want to write the data to? Please, advise.
> Thanks,Doaa.
>
> Sent from Yahoo Mail on Android
>
> On Tue, Feb 25, 2020 at 6:20 PM, Richard Rossel<henhiskan@gmail.com> wrote: you can use kafka-console-consumer that comes with your kafka
> deployment, or you can install kafkacat (which I found more simple to
> use)
>
> brew install kafkacat
>
> kafkacat -b your.broker.com:yourPORT -t yourtopic -c max-messages
>
>
> On Tue, Feb 25, 2020 at 9:03 AM Doaa K. Amin
> <doaaelkordy@yahoo.com.invalid> wrote:
> >
> > Hello,
> > I'm new to kafka and I'd like to write data from kafka to a CSV file in a Mac. Please, advise.
> > Thank You & Kindest Regards,Doaa.
>
>
>
> --
> Richard Rossel
> Atlanta - GA
>
--
Richard Rossel
Atlanta - GA
Comments
Post a Comment