becustom
domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home4/joyplace/public_html/wp-includes/functions.php on line 6114wordpress-seo
domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home4/joyplace/public_html/wp-includes/functions.php on line 6114There are 2 ways to get the list of available brokers in a Kafka cluster. Both with the help of scripts from zookeeper.<\/p>\n
Zookeeper manages the leader election and other coordination things for a Kafka cluster. So Zookeeper has a list of all the Kafka brokers in the cluster.<\/span><\/p>\n You would see something like below<\/span><\/p>\n This means that you have 3 alive brokers – 0, 1 and 2<\/span><\/p>\n Use zkCli.sh to login to Zookeeper client<\/p>\n Below will list all the available brokers in Kafka cluster<\/span><\/p>\n <\/p>\n","protected":false},"excerpt":{"rendered":" There are 2 ways to get the list of available brokers in a Kafka cluster. Both with the help of scripts from zookeeper. Zookeeper manages the [\u2026]<\/span><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-1709","post","type-post","status-publish","format-standard","hentry","category-kafka"],"yoast_head":"\nUsing zookeeper-shell.sh<\/span><\/h2>\n
zookeeper-shell.sh <zookeeper-host>:2181 ls \/brokers\/ids<\/pre>\n
WATCHER::\u00a0 WatchedEvent state:SyncConnected type:None path:null [0, 1, 2]<\/pre>\n
Using zkCli.sh\u00a0<\/span><\/h2>\n
zkCli.sh -server <zookeeper-host>:2181<\/pre>\n
ls \/brokers\/ids<\/pre>\n