I am writing a shell script to monitor kafka brokers.
I have gone through some links and found that if ZooKeeper contains a list of brokers, and if, in this list, th
This command will give you the list of the active brokers between brackets:
./bin/zookeeper-shell.sh localhost:2181 ls /brokers/ids