Tuesday, January 14, 2020

12. KAFKA : Sample Program10 : Zookeeper Monitor

12. KAFKA : Sample Program10 : Zookeeper Monitor


Zookeeper Monitor
#####################################-
bin/zookeeper-shell.sh localhost:2181

//You will see : WatchedEvent state:SyncConnected type:None path:null
//type below ls commands to check ids, topics, brokers etc...
ls /brokers/ids
[0, 1, 2]
ls /brokers
[ids, topics, seqid]
ls /brokers/topics
[NewTopic, SensorTopic, SupplierTopic, MyFirstTopic, __consumer_offsets]
ls /brokers/topics/NewTopic
[partitions]
ls /brokers/topics/NewTopic/partitions
[0, 1, 2, 3, 4]



No comments:

Post a Comment