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:[emailprotected]]-Resolved hostname: 10.140.9.23 to address: /10.140.9.23 2019-01-11 10:33:19,976 [myid:]-INFO [main:[emailprotected] ]]-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:[emailprotected]]-autopurge.snapRetainCount set to 3 2019-01-11 10:33:19,979 [myid:1]-INFO [main:[emailprotected]] ]]-autopurge.purgeInterval set to 0 2019-01-11 10:33:19,979 [myid:1]-INFO [main:[emailprotected]]-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]-ERR OR [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:[emailprotected]]-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 o rg.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 cannot be started, prompting that the local information is inconsistent with other servers.
You can delete the files in the /data/apps/zookeeper/data data directory and let them synchronize automatically.
Be careful not to delete the myid.