zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Flavio Junqueira <...@apache.org>
Subject Re: Discover LEADER from JMX
Date Tue, 08 May 2018 07:55:11 GMT
Hi Enrico,

You can determine the state of a server it via 4-letter commands. Would that work for you?

-Flavio

> On 8 May 2018, at 09:09, Enrico Olivelli <eolivelli@gmail.com> wrote:
> 
> Hi,
> is there any way to see in JMX which is the leader of a ZooKeeper cluster?
> 
> My problem is: given access to any of the nodes of the cluster I want to
> know from JMX which is the current leader.
> It seems to me that this information is not available, you can know only if
> the local node is Leader or Follower.
> 
> Cheers
> Enrico


Mime
View raw message