标签:img secure poc read binding load data not 目录 java
zk报错
分析问题的方法 。 起不来服务
然后去log 目录下 查看zookeeper.out的日志
一般放在/tmp目录下或者 zk的home目录下.
[root@hadoop103 ~]# tail -f -n 100 zookeeper.out
2020-06-23 04:24:01,764 [myid:] - INFO [main:QuorumPeerConfig@136] - Reading configuration from: /opt/module/zookeeper-3.4.12/bin/../conf/zoo.cfg
2020-06-23 04:24:01,784 [myid:] - INFO [main:QuorumPeer$QuorumServer@184] - Resolved hostname: hadoop103 to address: hadoop103/192.168.6.223
2020-06-23 04:24:01,785 [myid:] - INFO [main:QuorumPeer$QuorumServer@184] - Resolved hostname: hadoop102 to address: hadoop102/192.168.6.222
2020-06-23 04:24:01,785 [myid:] - INFO [main:QuorumPeer$QuorumServer@184] - Resolved hostname: hadoop104 to address: hadoop104/192.168.6.224
2020-06-23 04:24:01,785 [myid:] - INFO [main:QuorumPeerConfig@398] - Defaulting to majority quorums
2020-06-23 04:24:01,788 [myid:3] - INFO [main:DatadirCleanupManager@78] - autopurge.snapRetainCount set to 3
2020-06-23 04:24:01,788 [myid:3] - INFO [main:DatadirCleanupManager@79] - autopurge.purgeInterval set to 0
2020-06-23 04:24:01,788 [myid:3] - INFO [main:DatadirCleanupManager@101] - Purge task is not scheduled.
2020-06-23 04:24:01,815 [myid:3] - INFO [main:QuorumPeerMain@130] - Starting quorum peer
2020-06-23 04:24:01,826 [myid:3] - INFO [main:ServerCnxnFactory@117] - Using org.apache.zookeeper.server.NIOServerCnxnFactory as server connection factory
2020-06-23 04:24:01,831 [myid:3] - INFO [main:NIOServerCnxnFactory@89] - binding to port 0.0.0.0/0.0.0.0:2181
2020-06-23 04:24:01,843 [myid:3] - INFO [main:QuorumPeer@1158] - tickTime set to 2000
2020-06-23 04:24:01,843 [myid:3] - INFO [main:QuorumPeer@1204] - initLimit set to 10
2020-06-23 04:24:01,843 [myid:3] - INFO [main:QuorumPeer@1178] - minSessionTimeout set to -1
2020-06-23 04:24:01,843 [myid:3] - INFO [main:QuorumPeer@1189] - maxSessionTimeout set to -1
2020-06-23 04:24:01,854 [myid:3] - INFO [main:QuorumPeer@1467] - QuorumPeer communication is not secured!
2020-06-23 04:24:01,856 [myid:3] - INFO [main:QuorumPeer@1496] - quorum.cnxn.threads.size set to 20
2020-06-23 04:24:01,874 [myid:3] - INFO [main:FileSnap@86] - Reading snapshot /opt/module/zookeeper-3.4.12/zkData/version-2/snapshot.8e00094e03
2020-06-23 04:24:03,174 [myid:3] - ERROR [main:Util@214] - Last transaction was partial.
2020-06-23 04:24:03,187 [myid:3] - ERROR [main:QuorumPeer@692] - Unable to load database on disk
java.io.IOException: The accepted epoch, 8e is less than the current epoch, 8f
at org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:689)
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)
2020-06-23 04:24:03,188 [myid:3] - 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
这个错误。
[myid:3] - ERROR [main:QuorumPeer@692] - Unable to load database on disk
把这个version2的文件夹删掉即可.
标签:img secure poc read binding load data not 目录 java
原文地址:https://www.cnblogs.com/mengbin0546/p/13184042.html