zookeeeper集群环境查看leader节点
-
在项目实施中经常需要用用zookeeeper集群环境,当需要定位zookeeper集群是否稳定的时候,会需要判断集群中leader是否进行改变,这时候就需要命令来查看
zookeeper-3.4.6/bin ./zkServer.sh status ZooKeeper JMX enabled by default Using config: /home/storm/zookeeper/bin/../conf/zoo.cfg Mode: follower zookeeper-3.4.6/bin ./zkServer.sh status ZooKeeper JMX enabled by default Using config: /home/storm/zookeeper/bin/../conf/zoo.cfg Mode: leader