Tag Archives: zookeeper is not a recognized option

zookeeper is not a recognized option [How to Solve]

zookeeper is not a recognized option

An error is reported when creating a consumer:

.\bin\windows\kafka-console-consumer.bat --zookeeper localhost:2181 --topic ads_log 
zookeeper is not a recognized option

Cause of problem:

In the new version Kafka, -zookeeper has been deleted.

Solution:

The method of starting consumers after version 0.90 is as follows:

.\bin\windows\kafka-topics.bat  --bootstrap-server localhost:9092 --topic ads_log --from-beginning
 --bootstrap-server para

Create theme: you can

.\bin\windows\kafka-topics.bat --create  --bootstrap-server localhost:9092 --replication-factor 1 --partitions 3 --topic ads

.\bin\windows\kafka-topics.bat --create  --zookeeper localhost:2181 --replication-factor 1 --partitions 3 --topic ads

end!