kafka-cluster.sh: the Kafka cluster tool: cluster id, endpoints, unregister a broker
kafka-cluster.sh {cluster-id,unregister,list-endpoints} --bootstrap-server <servers>
Options you will use
--bootstrap-server <String: server to connect to>- REQUIRED: the Kafka broker(s) to connect to, host:port[,host:port]. Give more than one: the first may be the broker that is down.
cluster-id- print the cluster id.
list-endpoints- ID HOST PORT RACK STATE ENDPOINT_TYPE of every registered broker (or controller with --bootstrap-controller).
--include-fenced-brokers- with list-endpoints: show fenced brokers too.
unregister --id <id>- remove a broker that is gone for good.
Taught in
On the blog
Try kafka-cluster.sh in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.