zookeeper is not a recognized option

 kafka-console-consumer.bat --zookeeper localhost:2181 --topic test後出現“zookeeper is not a recognized option”

因爲版本過高,老方法已被棄用,換一個輸入方法即可——

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章