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:<
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