首页 > 其他分享 >The current epoch, 0, is older than the last zxid

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

时间:2023-02-18 09:12:47浏览次数:62  
标签:11 zxid 01 last 10 older 2019 myid main

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

相关文章

  • elastic-job服务启动报错,问题排查
     elastic-job服务启动报错,报错信息:org.quartz.SchedulerException:Jobthrewanunhandledexception.atorg.quartz.core.JobRunShell.run(JobRunShell.java:213)at......
  • ElasticSearch系列01
    系列内容elasticsearch概述elasticsearch安装elasticsearch查询客户端api使用1.elasticsearch概述1.1简介官网:https://www.elastic.co/Elasticsearch(......
  • elasticsearch安装后无法打开127.0.0.1:9200的解决办法
    解决办法注意elasticsearch.yml配置,至少需要配置这三个:cluster.initial_master_nodes:["node-1"]network.host:127.0.0.1http.port:9200其他不变运行elasticsear......
  • 狂神--ElasticSearch
    一、ElasticSearch概述官网:https://www.elastic.co/cn/downloads/elasticsearchElaticsearch,简称为es,es是一个开源的高扩展的分布式全文检索引擎,它可以近乎实时的存储......
  • 01-Elasticsearch的安装与启动
    1.验证jdk首先需要验证系统是否已经安装jdk,要求使用jdk1.8以上版本[root@app110~]#java-versionjavaversion"1.8.0_201"Java(TM)SERuntimeEnvironment(......
  • 04-Elasticsearch的 JestClient
    04-Elasticsearch的JestClient1.介绍任何使用过Elasticsearch的人都知道,使用基于rest的搜索API构建查询可能是单调乏味且容易出错的。在本教程中,我们将研究Jest,一个用......
  • ElasticSearch学习
    简介: 下载官方网站:https://www.elastic.co/cn/elasticsearch/ 安装  TRANSLATEwithxEnglishArabicHebrewPolishBulgarianHindiPortug......
  • ElasticSearch 单点部署
    1、下载指定的ES版本(7.17.3)https://www.elastic.co/downloads/past-releases/elasticsearch-7-17-32、单点部署elasticsearh1、安装服务[root@elk01~]#yumloca......
  • elasticsearch(es)中6.x版本和7.x版本分页总条数取值区别
     es6版本 java取值 longcount=search.getHits().getTotalHits();   es7版本  java取值longcount=search.getHits().getTotalHits().value;......
  • ElasticSearch学习总结
     //查询结果的排序,.missing("_last")https://doc.yonyoucloud.com/doc/mastering-elasticsearch/chapter-2/25_README.html//ES多字段匹配查询时的权重控制,multiMatc......