zkServer.sh start zkServer启动失败
[root@bigdatacloud zookeeper-3.4.6]# cat zookeeper.out2016-06-19 13:06:57,359 [myid:] - INFO [main:QuorumPeerConfig@103] - Reading configuration from: /usr/local/zookeeper-3.4.6/bin/../conf/zoo.cfg
·
[root@bigdatacloud zookeeper-3.4.6]# cat zookeeper.out
2016-06-19 13:06:57,359 [myid:] - INFO [main:QuorumPeerConfig@103] - Reading configuration from: /usr/local/zookeeper-3.4.6/bin/../conf/zoo.cfg
2016-06-19 13:06:57,370 [myid:] - INFO [main:QuorumPeerConfig@340] - Defaulting to majority quorums
2016-06-19 13:06:57,383 [myid:2] - INFO [main:DatadirCleanupManager@78] - autopurge.snapRetainCount set to 3
2016-06-19 13:06:57,384 [myid:2] - INFO [main:DatadirCleanupManager@79] - autopurge.purgeInterval set to 0
2016-06-19 13:06:57,386 [myid:2] - INFO [main:DatadirCleanupManager@101] - Purge task is not scheduled.
2016-06-19 13:06:57,418 [myid:2] - INFO [main:QuorumPeerMain@127] - Starting quorum peer
2016-06-19 13:06:57,478 [myid:2] - INFO [main:NIOServerCnxnFactory@94] - binding to port 0.0.0.0/0.0.0.0:2181
2016-06-19 13:06:57,546 [myid:2] - INFO [main:QuorumPeer@959] - tickTime set to 2000
2016-06-19 13:06:57,546 [myid:2] - INFO [main:QuorumPeer@979] - minSessionTimeout set to -1
2016-06-19 13:06:57,547 [myid:2] - INFO [main:QuorumPeer@990] - maxSessionTimeout set to -1
2016-06-19 13:06:57,550 [myid:2] - INFO [main:QuorumPeer@1005] - initLimit set to 5
2016-06-19 13:06:57,656 [myid:2] - INFO [main:FileSnap@83] - Reading snapshot /opt/zookeeper/version-2/snapshot.2100000017
2016-06-19 13:06:57,764 [myid:2] - ERROR [main:QuorumPeer@497] - Unable to load database on disk
java.io.IOException: The current epoch, 22, is older than the last zxid, 150323855362
at org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:479)
at org.apache.zookeeper.server.quorum.QuorumPeer.start(QuorumPeer.java:440)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:153)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:111)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78)
2016-06-19 13:06:57,771 [myid:2] - ERROR [main:QuorumPeerMain@89] - Unexpected exception, exiting abnormally
java.lang.RuntimeException: Unable to run quorum server
at org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:498)
at org.apache.zookeeper.server.quorum.QuorumPeer.start(QuorumPeer.java:440)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:153)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:111)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78)
Caused by: java.io.IOException: The current epoch, 22, is older than the last zxid, 150323855362
at org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:479)
... 4 more
[root@bigdatacloud zookeeper-3.4.6]# zkServer.sh start
JMX enabled by default
Using config: /usr/local/zookeeper-3.4.6/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED
[root@bigdatacloud zookeeper-3.4.6]# zkServer.sh stop
JMX enabled by default
Using config: /usr/local/zookeeper-3.4.6/bin/../conf/zoo.cfg
Stopping zookeeper ... /usr/local/zookeeper-3.4.6/bin/zkServer.sh: line 143: kill: (1570) - No such process
2016-06-19 13:06:57,359 [myid:] - INFO [main:QuorumPeerConfig@103] - Reading configuration from: /usr/local/zookeeper-3.4.6/bin/../conf/zoo.cfg
2016-06-19 13:06:57,370 [myid:] - INFO [main:QuorumPeerConfig@340] - Defaulting to majority quorums
2016-06-19 13:06:57,383 [myid:2] - INFO [main:DatadirCleanupManager@78] - autopurge.snapRetainCount set to 3
2016-06-19 13:06:57,384 [myid:2] - INFO [main:DatadirCleanupManager@79] - autopurge.purgeInterval set to 0
2016-06-19 13:06:57,386 [myid:2] - INFO [main:DatadirCleanupManager@101] - Purge task is not scheduled.
2016-06-19 13:06:57,418 [myid:2] - INFO [main:QuorumPeerMain@127] - Starting quorum peer
2016-06-19 13:06:57,478 [myid:2] - INFO [main:NIOServerCnxnFactory@94] - binding to port 0.0.0.0/0.0.0.0:2181
2016-06-19 13:06:57,546 [myid:2] - INFO [main:QuorumPeer@959] - tickTime set to 2000
2016-06-19 13:06:57,546 [myid:2] - INFO [main:QuorumPeer@979] - minSessionTimeout set to -1
2016-06-19 13:06:57,547 [myid:2] - INFO [main:QuorumPeer@990] - maxSessionTimeout set to -1
2016-06-19 13:06:57,550 [myid:2] - INFO [main:QuorumPeer@1005] - initLimit set to 5
2016-06-19 13:06:57,656 [myid:2] - INFO [main:FileSnap@83] - Reading snapshot /opt/zookeeper/version-2/snapshot.2100000017
2016-06-19 13:06:57,764 [myid:2] - ERROR [main:QuorumPeer@497] - Unable to load database on disk
java.io.IOException: The current epoch, 22, is older than the last zxid, 150323855362
at org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:479)
at org.apache.zookeeper.server.quorum.QuorumPeer.start(QuorumPeer.java:440)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:153)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:111)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78)
2016-06-19 13:06:57,771 [myid:2] - ERROR [main:QuorumPeerMain@89] - Unexpected exception, exiting abnormally
java.lang.RuntimeException: Unable to run quorum server
at org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:498)
at org.apache.zookeeper.server.quorum.QuorumPeer.start(QuorumPeer.java:440)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:153)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:111)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78)
Caused by: java.io.IOException: The current epoch, 22, is older than the last zxid, 150323855362
at org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:479)
... 4 more
[root@bigdatacloud zookeeper-3.4.6]# zkServer.sh start
JMX enabled by default
Using config: /usr/local/zookeeper-3.4.6/bin/../conf/zoo.cfg
Starting zookeeper ... STARTED
[root@bigdatacloud zookeeper-3.4.6]# zkServer.sh stop
JMX enabled by default
Using config: /usr/local/zookeeper-3.4.6/bin/../conf/zoo.cfg
Stopping zookeeper ... /usr/local/zookeeper-3.4.6/bin/zkServer.sh: line 143: kill: (1570) - No such process
STOPPED
Any solution :
set acceptedEpoch currentEpoch same values ,and remove .tmp file
========================华丽分割线==================
集群重启后问题消失
更多推荐
已为社区贡献3条内容
所有评论(0)