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
echo dump | nc localhost 2181 | grep brokers
(replace localhost with the host where zookeeper is running)