Support Questions

Find answers, ask questions, and share your expertise

why we not get all kafka broker list from zookeeper

avatar

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]# ./zkCli.sh
Connecting to localhost:2181
Welcome to ZooKeeper!
JLine support is enabled
WATCHER::
WatchedEvent state:SyncConnected type:None path:null
[zk: localhost:2181(CONNECTED) 0] ls /brokers/ids
[1013, 1012]
Michael-Bronson
4 REPLIES 4

avatar
Super Collaborator

On brokers termination, they remove themselves from Zookeeper

avatar

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

Michael-Bronson

avatar
@Michael Bronson

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

avatar