The current epoch, 0, is older than the last zxid

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了The current epoch, 0, is older than the last zxid相关的知识,希望对你有一定的参考价值。

2019-01-11 10:33:19,963 [myid:] - INFO  [main:[email protected]] - Reading configuration from: /data/apps/zookeeper/bin/../conf/zoo.cfg
2019-01-11 10:33:19,975 [myid:] - INFO  [main:[email protected]] - Resolved hostname: 10.140.9.24 to address: /10.140.9.24
2019-01-11 10:33:19,975 [myid:] - INFO  [main:[email protected]] - Resolved hostname: 10.140.9.23 to address: /10.140.9.23
2019-01-11 10:33:19,976 [myid:] - INFO  [main:[email protected]] - Resolved hostname: 10.140.9.29 to address: /10.140.9.29
2019-01-11 10:33:19,976 [myid:] - INFO  [main:[email protected]] - Defaulting to majority quorums
2019-01-11 10:33:19,979 [myid:1] - INFO  [main:[email protected]] - autopurge.snapRetainCount set to 3
2019-01-11 10:33:19,979 [myid:1] - INFO  [main:[email protected]] - autopurge.purgeInterval set to 0
2019-01-11 10:33:19,979 [myid:1] - INFO  [main:[email protected]] - Purge task is not scheduled.
2019-01-11 10:33:19,991 [myid:1] - INFO  [main:[email protected]] - Starting quorum peer
2019-01-11 10:33:19,997 [myid:1] - INFO  [main:[email protected]] - Using org.apache.zookeeper.server.NioserverCnxnFactory as server connection factory
2019-01-11 10:33:20,001 [myid:1] - INFO  [main:[email protected]] - binding to port 0.0.0.0/0.0.0.0:2181
2019-01-11 10:33:20,007 [myid:1] - INFO  [main:[email protected]] - tickTime set to 2000
2019-01-11 10:33:20,007 [myid:1] - INFO  [main:[email protected]] - initLimit set to 10
2019-01-11 10:33:20,007 [myid:1] - INFO  [main:[email protected]] - minSessionTimeout set to -1
2019-01-11 10:33:20,007 [myid:1] - INFO  [main:[email protected]] - maxSessionTimeout set to -1
2019-01-11 10:33:20,013 [myid:1] - INFO  [main:[email protected]] - QuorumPeer communication is not secured!
2019-01-11 10:33:20,014 [myid:1] - INFO  [main:[email protected]] - quorum.cnxn.threads.size set to 20
2019-01-11 10:33:20,016 [myid:1] - INFO  [main:[email protected]] - Reading snapshot /data/apps/zookeeper/data/version-2/snapshot.9000011c1
2019-01-11 10:33:20,059 [myid:1] - ERROR [main:[email protected]] - Last transaction was partial.
2019-01-11 10:33:20,060 [myid:1] - ERROR [main:[email protected]] - Unable to load database on disk
java.io.IOException: The current epoch, 0, is older than the last zxid, 38654710241
    at org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:674)
    at org.apache.zookeeper.server.quorum.QuorumPeer.start(QuorumPeer.java:635)
    at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:170)
    at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:114)
    at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:81)
2019-01-11 10:33:20,062 [myid:1] - ERROR [main:[email protected]] - Unexpected exception, exiting abnormally
java.lang.RuntimeException: Unable to run quorum server 
    at org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:693)
    at org.apache.zookeeper.server.quorum.QuorumPeer.start(QuorumPeer.java:635)
    at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:170)
    at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:114)
    at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:81)
Caused by: java.io.IOException: The current epoch, 0, is older than the last zxid, 38654710241
    at org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:674)
    ... 4 more

zookeeper无法启动,提示本地信息和其他服务器不一致。

可以删除/data/apps/zookeeper/data 数据目录下的文件,让其自动同步。

注意那个myid别删。

以上是关于The current epoch, 0, is older than the last zxid的主要内容,如果未能解决你的问题,请参考以下文章

Hadoop- Namenode经常挂掉 IPC's epoch 9 is less than the last promised epoch 10

A100-PCIE-40GB with CUDA capability sm_80 is not compatible with the current PyTorch installation

A100-PCIE-40GB with CUDA capability sm_80 is not compatible with the current PyTorch installation

yum 时候出现Another app is currently holding the yum lock解决方法

yum提示Another app is currently holding the yum lock

java se the operation is not applicable to the current selection