Gnana
Gnana

Reputation: 2230

Apache Kafka producer option on windows

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.

Windows Command

kafka-console-producer.bat **--broker-list** localhost:9092 --topic test

Linux Command

kafka-console-producer.sh **--zookeeper** localhost:2181 --topic test

Upvotes: 1

Views: 2219

Answers (1)

Lundahl
Lundahl

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

Related Questions