According to the tutorial I'm following you just execute script.sh foo.properties
but it's not working.
connect-standalone.properties file contents:
vagrant@coton:~/kafka/kafka_2.13-2.8.0$ grep -v '^#' config/connect-standalone.properties
bootstrap.servers=localhost:9092
key.converter=org.apache.kafka.connect.json.JsonConverter
value.converter=org.apache.kafka.connect.json.JsonConverter
key.converter.schemas.enable=true
value.converter.schemas.enable=true
offset.storage.file.filename=/tmp/connect.offsets
offset.flush.interval.ms=10000
plugin.path=/home/vagrant/kafka/kafka_2.13-2.8.0/connectors
output when executing command:
vagrant@coton:~/kafka/kafka_2.13-2.8.0$ ./bin/connect-standalone.sh config/connect-standalone.properties
[2021-07-24 21:33:40,383] INFO Usage: ConnectStandalone worker.properties connector1.properties [connector2.properties ...] (org.apache.kafka.connect.cli.ConnectStandalone:62)
vagrant@coton:~/kafka/kafka_2.13-2.8.0$
This INFO message is output by the program ConnectStandalone itself. It appears to be asking for another file, but in the example I am following there is no other file. What am I doing wrong? I am running on Java 8.
The video I'm following is https://www.youtube.com/watch?v=18gDPSOH3wU and at 7:53 he starts the distributed connect command with only one properties file (effectively connect-distributed.sh foo.properties
). There's no "worker properties" file that I've seen mentioned elsewhere. And for him it works.