[ https://issues.apache.org/jira/browse/ZOOKEEPER-3454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
maoling updated ZOOKEEPER-3454: ------------------------------- Summary: add a new CLI: quorumInfo (was: add a new CLI: q) > add a new CLI: quorumInfo > ------------------------- > > Key: ZOOKEEPER-3454 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3454 > Project: ZooKeeper > Issue Type: New Feature > Components: java client > Reporter: maoling > Assignee: maoling > Priority: Major > > ./etcdctl -w table --endpoints=127.0.0.1:2379,127.0.0.1:3379,127.0.0.1:4379 > endpoint status > +----------------+------------------+---------+---------+-----------+-----------+------------+ > | ENDPOINT | ID | VERSION | DB SIZE | IS LEADER | RAFT TERM | RAFT INDEX | > +----------------+------------------+---------+---------+-----------+-----------+------------+ > | 127.0.0.1:2379 | 2d6d41b3de34869d | 3.3.11 | 20 kB | true | 46 | 18 | > | 127.0.0.1:3379 | fa452fb497312bf1 | 3.3.11 | 20 kB | false | 46 | 18 | > | 127.0.0.1:4379 | a20a53b92b8e7e56 | 3.3.11 | 20 kB | false | 46 | 18 | > +----------------+------------------+---------+---------+-----------+-----------+------------+ > [用name会报错]:Error: dial tcp: lookup etcd-1 on 10.9.255.1:53: no such host > ./etcdctl -w table --endpoints=etcd-1:2379,etcd-2:3379,etcd-3:4379 endpoint > status > ./etcdctl endpoint health > ./etcdctl --endpoints=127.0.0.1:2379,127.0.0.1:3379,127.0.0.1:4379 health > 127.0.0.1:2379 is healthy: successfully committed proposal: took = 1.454841ms > ./etcdctl member list > 3fcd54d1766f30b4: name=etcd-2 peerURLs=http://127.0.0.1:2381 > clientURLs=http://127.0.0.1:3379,http://127.0.0.1:3379 isLeader=false > 48e24310bdb358ce: name=etcd-1 peerURLs=http://127.0.0.1:2380 > clientURLs=http://127.0.0.1:2379,http://127.0.0.1:2379 isLeader=true > 66846ef509b1c4d7: name=etcd-3 peerURLs=http://127.0.0.1:2382 > clientURLs=http://127.0.0.1:4379,http://127.0.0.1:4379 isLeader=false -- This message was sent by Atlassian JIRA (v7.6.3#76005)