Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

why we not get all kafka broker list from zookeeper

Highlighted

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]# ./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

Re: why we not get all kafka broker list from zookeeper

Super Collaborator

On brokers termination, they remove themselves from Zookeeper

Re: why we not get all kafka broker list from zookeeper

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

Michael-Bronson

Re: why we not get all kafka broker list from zookeeper

@Michael Bronson

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

Re: why we not get all kafka broker list from zookeeper