问题记录:zookeeper启动异常The current epoch, 6, is older than the last zxid

in zookeeper •  7 years ago 

zookeeper启动异常

2018-03-12 10:39:08,985 [myid:2] - INFO  [main:FileSnap@83] - Reading snapshot /var/zookeeper/version-2/snapshot.500000a6f
2018-03-12 10:39:09,038 [myid:2] - ERROR [main:QuorumPeer@530] - Unable to load database on disk
java.io.IOException: The current epoch, 6, is older than the last zxid, 30064771073
        at org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:512)
        at org.apache.zookeeper.server.quorum.QuorumPeer.start(QuorumPeer.java:473)
        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)
2018-03-12 10:39:09,040 [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:531)
        at org.apache.zookeeper.server.quorum.QuorumPeer.start(QuorumPeer.java:473)
        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, 6, is older than the last zxid, 30064771073
        at org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:512)
        ... 4 more
2018-03-12 10:39:10,905 [myid:] - INFO  [main:FourLetterWordMain@43] - connecting to localhost 2181
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!