In ZK shell the following command: ls /brokers/ids
will give you a list like this: [0, 1, 2, 3, 4] where items are broker ids you can further use to issue "get" request to ZK: get /brokers/ids/<broker id> 2014-06-26 12:37 GMT+04:00 Balasubramanian Jayaraman < balasubramanian.jayara...@autodesk.com>: > Hi, > > I used the command (bin/zookeeper-shell.sh 0.0.0.0:2181 get > /brokers/ids/0) to get the broker metadata information. > How do I get the list of brokers attached to a zookeeper ? > > Is my question clear ? > > Thanks > Bala > -----Original Message----- > From: Neha Narkhede [mailto:neha.narkh...@gmail.com] > Sent: Thursday, June 26, 2014 1:20 PM > To: users@kafka.apache.org > Subject: Re: Reg Broker information. > > I'm not sure I understood your question. If you want to know all > registered brokers, could you list the broker ids "ls /brokers/ids" and > then read each of the returned children nodes? > > > > On Wed, Jun 25, 2014 at 7:29 PM, Balasubramanian Jayaraman < > balasubramanian.jayara...@autodesk.com> wrote: > > > Hi, > > > > Currently we have the command (/brokers/ids/0) to get the individual > > broker registration information. > > How do I get all the registered brokers from the zookeeper. > > > > Thanks > > Bala > > > > >