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
If you are using new version of Kafka e.g. 5.3.3, you can use
kafka-broker-api-versions --bootstrap-server BROKER | grep 9092
You just need to pass one of the brokers