Kafka啓動消費者時提示no brokers found when trying to rebalance.

kafka在執行以下命令時提示:

bin/kafka-console-consumer.sh --zookeeper localhost102:2181 --topic test

WARN [console-consumer-87796_localhost002-1592779486563-9b43649b], no brokers found when trying to rebalance.(kafka.consumer.ZookeeperConsumerConnector)

產生原因是沒啓動kafka進程 或者 是zookeeper上沒有kafka集羣信息

[root@localhost002 ~]# jps
3667 DataNode
3365 ResourceManager
21446 QuorumPeerMain
23386 Jps
3230 NodeManager

啓動kafka後解決問題

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