You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Balasubramanian Jayaraman <ba...@autodesk.com> on 2014/06/26 04:29:20 UTC

Reg Broker information.

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


RE: Reg Broker information.

Posted by Balasubramanian Jayaraman <ba...@autodesk.com>.
Thanks Yury. It worked.

Bala

-----Original Message-----
From: Yury Ruchin [mailto:yuri.ruchin@gmail.com] 
Sent: Thursday, June 26, 2014 8:52 PM
To: users@kafka.apache.org
Subject: Re: Reg Broker information.

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
> >
> >
>

Re: Reg Broker information.

Posted by Yury Ruchin <yu...@gmail.com>.
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
> >
> >
>

RE: Reg Broker information.

Posted by Balasubramanian Jayaraman <ba...@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
>
>

Re: Reg Broker information.

Posted by Neha Narkhede <ne...@gmail.com>.
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
>
>