Support Questions

Find answers, ask questions, and share your expertise

why we not get all kafka broker list from zookeeper

hi all

we have ambari cluster , version 2.6.x , with 3 kafka machine and 3 zookeper servers

by the command ls /brokers/ids ,

we need to get all brokers ids as 1011 , 1012 , 1013

but in our case we get only the brokers id's - 1013 , 1012

what chould be the problem ?

cd /usr/hdp/current/zookeeper-server/bin
You have mail in /var/spool/mail/root
[root@master01 bin]# ./
Connecting to localhost:2181
Welcome to ZooKeeper!
JLine support is enabled
WatchedEvent state:SyncConnected type:None path:null
[zk: localhost:2181(CONNECTED) 0] ls /brokers/ids
[1013, 1012]

Super Collaborator

On brokers termination, they remove themselves from Zookeeper

but broker 1001 is up and I see also port is in listen


@Michael Bronson

There could be some issue with the 1011 broker. Do check /var/log/kafka/server.log for more information.