zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Nauroth <cnaur...@hortonworks.com>
Subject Re: view number of zookeeper nodes in a single ensemble
Date Wed, 16 Dec 2015 17:37:06 GMT
If you're using the dynamic reconfiguration feature available in the 3.5
release line, then you might prefer to use the "config" CLI command.
Instead of the static configuration files, this command reads the current
dynamic configuration stored in the config znode.  More details are
available here:

http://zookeeper.apache.org/doc/r3.5.1-alpha/zookeeperReconfig.html#sc_reco
nfig_retrieving


--Chris Nauroth




On 12/14/15, 8:23 AM, "Jens Rantil" <jens.rantil@tink.se> wrote:

>Hi Kaushal,
>
>You can always execute
>
>$ grep '^server.' /etc/zookeeper/conf/zoo.cnf|wc -l
>3
>
>on a server.
>
>Cheers,
>Jens
>
>On Mon, Dec 14, 2015 at 2:32 PM, Kaushal Shriyan
><kaushalshriyan@gmail.com>
>wrote:
>
>> Hi,
>>
>> is there a way to see how many nodes are in a single ensemble? For
>>example
>> we have nodetool ring in Cassandra which shows the total number of
>>nodes in
>> local datacenter and across datacenters.
>>
>> Regards,
>>
>> Kaushal
>>
>
>
>
>-- 
>Jens Rantil
>Backend engineer
>Tink AB
>
>Email: jens.rantil@tink.se
>Phone: +46 708 84 18 32
>Web: www.tink.se
>
>Facebook <https://www.facebook.com/#!/tink.se> Linkedin
><http://www.linkedin.com/company/2735919?trk=vsrp_companies_res_photo&trkI
>nfo=VSRPsearchId%3A1057023381369207406670%2CVSRPtargetId%3A2735919%2CVSRPc
>mpt%3Aprimary>
> Twitter <https://twitter.com/tink>


Mime
View raw message