Reputation: 2230
I am new to Apache Kafka and running Kafka on Windows 7. Kafka publisher bat file is not supporting Zookeeper option. am using broker-list
options that requires Broker IP and port.But Linux SH is supporting Zookeeper option. please help how to use Zookeeper option on Windows publisher bat.
kafka-console-producer.bat **--broker-list** localhost:9092 --topic test
kafka-console-producer.sh **--zookeeper** localhost:2181 --topic test
Upvotes: 1
Views: 2219
Reputation: 6562
Kafka producers are no longer communicating with Zookeeper and only targets Kafka brokers since a number of versions ago. You should be using --broker-list
with both Linux and Windows console producer scripts now.
Upvotes: 1