发现zookeeper安装目录下/usr/local/zookeeper/zookeeper.out 的日记信息如下:
1 2015-05-04 10:16:52,668 [myid:] - INFO [main:QuorumPeerConfig@103] - Reading configuration from: /usr/local/zookeeper-3.4.6/bin/../conf/zoo.cfg
2 2015-05-04 10:16:52,672 [myid:] - INFO [main:QuorumPeerConfig@340] - Defaulting to majority quorums
3 2015-05-04 10:16:52,674 [myid:0] - INFO [main:DatadirCleanupManager@78] - autopurge.snapRetainCount set to 3
4 2015-05-04 10:16:52,674 [myid:0] - INFO [main:DatadirCleanupManager@79] - autopurge.purgeInterval set to 0
5 2015-05-04 10:16:52,674 [myid:0] - INFO [main:DatadirCleanupManager@101] - Purge task is not scheduled.
6 2015-05-04 10:16:52,682 [myid:0] - INFO [main:QuorumPeerMain@127] - Starting quorum peer
7 2015-05-04 10:16:52,689 [myid:0] - INFO [main:NIOServerCnxnFactory@94] - binding to port 0.0.0.0/0.0.0.0:2181
8 2015-05-04 10:16:52,702 [myid:0] - INFO [main:QuorumPeer@959] - tickTime set to 2000
9 2015-05-04 10:16:52,702 [myid:0] - INFO [main:QuorumPeer@979] - minSessionTimeout set to -1
10 2015-05-04 10:16:52,702 [myid:0] - INFO [main:QuorumPeer@990] - maxSessionTimeout set to -1
11 2015-05-04 10:16:52,702 [myid:0] - INFO [main:QuorumPeer@1005] - initLimit set to 10
12 2015-05-04 10:16:52,709 [myid:0] - ERROR [main:QuorumPeer@171] - Setting LearnerType to PARTICIPANT but 0 not in QuorumPeers.
13 2015-05-04 10:16:52,713 [myid:0] - ERROR [main:QuorumPeerMain@89] - Unexpected exception, exiting abnormally
14 java.lang.RuntimeException: My id 0 not in the peer list
15 at org.apache.zookeeper.server.quorum.QuorumPeer.startLeaderElection(QuorumPeer.java:523)
16 at org.apache.zookeeper.server.quorum.QuorumPeer.start(QuorumPeer.java:442)
17 at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:153)
18 at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:111)
19 at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78)
~ |