Zookeeper的作用
Kafka的服务需要ZooKeeper中进行注册。ZooKeeper存储了Kafka相关的元信息。
1. 查看ZooKeeper节点信息
sh
[jack@hadoop105 bin]$ ./zookeeper-shell.sh localhost:2181
Connecting to localhost:2181
Welcome to ZooKeeper!
JLine support is disabled
WATCHER::
WatchedEvent state:SyncConnected type:None path:null
ls /kafka
[admin, brokers, cluster, config, consumers, controller, controller_epoch, feature, isr_change_notification, latest_producer_id_block, log_dir_event_notification, zookeeper]