kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yury Ruchin <yuri.ruc...@gmail.com>
Subject Re: Reg Broker information.
Date Thu, 26 Jun 2014 12:51:35 GMT
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.jayaraman@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.narkhede@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.jayaraman@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
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message