zookeeper is not a recognized option

创建消费者时候报错:

D:\kafka_2.12-2.3.0\bin\windows>kafka-console-consumer.bat --zookeeper localhost:2181 --topic test
zookeeper is not a recognized option

问题原因:

新版本kafka中,--zookeeper这种启动方式已删除。

解决办法:

0.90版本之后启动消费者的方法如下:

kafka-console-consumer.bat --bootstrap-server localhost:9092 --topic test --from-beginning

 

posted @ 2019-08-25 22:26  ycyzharry  阅读(6108)  评论(0编辑  收藏  举报