cd kafka_2.11-0.10.2.1\bin\windows
echo ls /brokers/ids | zookeeper-shell.bat localhost:2181
使用kafka bin目录中的zookeeper-shell.sh来查看kafka在zookeeper中的配置。
连接zookeeper:
bin/zookeeper-shell.sh 127.0.0.1:2181
https://my.oschina.net/tongyufu/blog/1806196
https://chengjianxiaoxue.iteye.com/blog/2190488