2019-01-11 10:33:19,963 [myid:] - INFO [main:QuorumPeerConfig@136] - Reading configuration from: /data/apps/zookeeper/bin/../conf/zoo.cfg 2019-01-11 10:33:19,975 [myid:] - INFO [main:QuorumPeer$QuorumServer@184] - Resolved hostname: 10.140.9.24 to address: /10.140.9.24 2019-01-11 10:33:19,975 [myid:] - INFO [main:QuorumPeer$QuorumServer@184] - Resolved hostname: 10.140.9.23 to address: /10.140.9.23 2019-01-11 10:33:19,976 [myid:] - INFO [main:QuorumPeer$QuorumServer@184] - Resolved hostname: 10.140.9.29 to address: /10.140.9.29 2019-01-11 10:33:19,976 [myid:] - INFO [main:QuorumPeerConfig@398] - Defaulting to majority quorums 2019-01-11 10:33:19,979 [myid:1] - INFO [main:DatadirCleanupManager@78] - autopurge.snapRetainCount set to 3 2019-01-11 10:33:19,979 [myid:1] - INFO [main:DatadirCleanupManager@79] - autopurge.purgeInterval set to 0 2019-01-11 10:33:19,979 [myid:1] - INFO [main:DatadirCleanupManager@101] - Purge task is not scheduled. 2019-01-11 10:33:19,991 [myid:1] - INFO [main:QuorumPeerMain@130] - Starting quorum peer 2019-01-11 10:33:19,997 [myid:1] - INFO [main:ServerCnxnFactory@117] - Using org.apache.zookeeper.server.NIOServerCnxnFactory as server connection factory 2019-01-11 10:33:20,001 [myid:1] - INFO [main:NIOServerCnxnFactory@89] - binding to port 0.0.0.0/0.0.0.0:2181 2019-01-11 10:33:20,007 [myid:1] - INFO [main:QuorumPeer@1158] - tickTime set to 2000 2019-01-11 10:33:20,007 [myid:1] - INFO [main:QuorumPeer@1204] - initLimit set to 10 2019-01-11 10:33:20,007 [myid:1] - INFO [main:QuorumPeer@1178] - minSessionTimeout set to -1 2019-01-11 10:33:20,007 [myid:1] - INFO [main:QuorumPeer@1189] - maxSessionTimeout set to -1 2019-01-11 10:33:20,013 [myid:1] - INFO [main:QuorumPeer@1467] - QuorumPeer communication is not secured! 2019-01-11 10:33:20,014 [myid:1] - INFO [main:QuorumPeer@1496] - quorum.cnxn.threads.size set to 20 2019-01-11 10:33:20,016 [myid:1] - INFO [main:FileSnap@83] - Reading snapshot /data/apps/zookeeper/data/version-2/snapshot.9000011c1 2019-01-11 10:33:20,059 [myid:1] - ERROR [main:Util@239] - Last transaction was partial. 2019-01-11 10:33:20,060 [myid:1] - ERROR [main:QuorumPeer@692] - 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:QuorumPeerMain@92] - 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别删。
标签:11,zxid,01,last,10,older,2019,myid,main From: https://www.cnblogs.com/liuys635/p/17131941.html