Kafka producer to read data files

前端 未结 7 705
傲寒
傲寒 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:39

    Kafka has this built-in File Stream Connector, for piping the content of a file to producer(file source), or directing file content to another destination(file sink).

    We have bin/connect-standalone.sh to read from file which can be configured in config/connect-file-source.properties and config/connect-standalone.properties.

    So the command will be:

    bin/connect-standalone.sh config/connect-standalone.properties config/connect-file-source.properties
    

提交回复
热议问题