Kafka producer to read data files

前端 未结 7 614
傲寒
傲寒 2021-02-02 04:14

I am trying to load a data file in loop(to check stats) instead of standard input in Kafka. After downloading Kafka, I performed the following steps:

Started zookeeper:<

7条回答
  •  春和景丽
    2021-02-02 04:48

    You can probably try the kafkacat utility as well. The readme on Github provides examples

    It would be great if you could share which tool worked the best for you :)

    Details from KafkaCat Readme:

    Read messages from stdin, produce to 'syslog' topic with snappy compression

    $ tail -f /var/log/syslog | kafkacat -b mybroker -t syslog -z snappy
    

提交回复
热议问题