Kafka producer to read data files

前端 未结 7 594
傲寒
傲寒 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:58
    kafka-console-produce.sh \
      --broker-list localhost:9092 \
      --topic my_topic \
      --new-producer < my_file.txt
    

    Follow this link: http://grokbase.com/t/kafka/users/157b71babg/kafka-producer-input-file

    0 讨论(0)
提交回复
热议问题