How to list all available Kafka brokers in a cluster?

This command will give you the list of the active brokers between brackets:

./bin/zookeeper-shell.sh localhost:2181 ls /brokers/ids

Leave a Comment