文档章节

Unable to load database on disk

刀锋
 刀锋
发布于 06/25 19:17
字数 455
阅读 47
收藏 0

由于磁盘空间满了以后,导致zookeeper异常退出,清理磁盘空间后,zk启动报错,信息如下: 

2018-06-25 17:18:46,904 INFO org.apache.zookeeper.server.quorum.QuorumPeerConfig: Reading configuration from: /run/cloudera-scm-agent/process/447-zookeeper-server/zoo.cfg
2018-06-25 17:18:46,934 INFO org.apache.zookeeper.server.quorum.QuorumPeerConfig: Defaulting to majority quorums
2018-06-25 17:18:46,939 INFO org.apache.zookeeper.server.DatadirCleanupManager: autopurge.snapRetainCount set to 5
2018-06-25 17:18:46,939 INFO org.apache.zookeeper.server.DatadirCleanupManager: autopurge.purgeInterval set to 24
2018-06-25 17:18:46,962 INFO org.apache.zookeeper.server.quorum.QuorumPeerMain: Starting quorum peer
2018-06-25 17:18:46,971 INFO org.apache.zookeeper.server.DatadirCleanupManager: Purge task started.
2018-06-25 17:18:46,998 INFO org.apache.zookeeper.server.DatadirCleanupManager: Purge task completed.
2018-06-25 17:18:47,001 INFO org.apache.zookeeper.server.NIOServerCnxnFactory: binding to port 0.0.0.0/0.0.0.0:2181
2018-06-25 17:18:47,035 INFO org.apache.zookeeper.server.quorum.QuorumPeer: minSessionTimeout set to 4000
2018-06-25 17:18:47,035 INFO org.apache.zookeeper.server.quorum.QuorumPeer: maxSessionTimeout set to 60000
2018-06-25 17:18:47,036 INFO org.apache.zookeeper.server.quorum.QuorumPeer: QuorumPeer communication is not secured!
2018-06-25 17:18:47,038 INFO org.apache.zookeeper.server.quorum.QuorumPeer: quorum.cnxn.threads.size set to 20
2018-06-25 17:18:47,040 INFO org.apache.zookeeper.server.persistence.FileSnap: Reading snapshot /var/lib/zookeeper/version-2/snapshot.e00000000
2018-06-25 17:18:47,195 ERROR org.apache.zookeeper.server.quorum.QuorumPeer: Unable to load database on disk
java.io.EOFException
        at java.io.DataInputStream.readInt(DataInputStream.java:392)
        at org.apache.jute.BinaryInputArchive.readInt(BinaryInputArchive.java:63)
        at org.apache.zookeeper.server.persistence.FileHeader.deserialize(FileHeader.java:64)
        at org.apache.zookeeper.server.persistence.FileTxnLog$FileTxnIterator.inStreamCreated(FileTxnLog.java:594)
        at org.apache.zookeeper.server.persistence.FileTxnLog$FileTxnIterator.createInputArchive(FileTxnLog.java:613)
        at org.apache.zookeeper.server.persistence.FileTxnLog$FileTxnIterator.goToNextLog(FileTxnLog.java:579)
        at org.apache.zookeeper.server.persistence.FileTxnLog$FileTxnIterator.next(FileTxnLog.java:661)
        at org.apache.zookeeper.server.persistence.FileTxnSnapLog.restore(FileTxnSnapLog.java:204)
        at org.apache.zookeeper.server.ZKDatabase.loadDataBase(ZKDatabase.java:223)
        at org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:530)
        at org.apache.zookeeper.server.quorum.QuorumPeer.start(QuorumPeer.java:520)
        at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:167)
        at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:116)
        at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:79)
2018-06-25 17:18:47,212 ERROR org.apache.zookeeper.server.quorum.QuorumPeerMain: Unexpected exception, exiting abnormally
java.lang.RuntimeException: Unable to run quorum server 
        at org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:578)
        at org.apache.zookeeper.server.quorum.QuorumPeer.start(QuorumPeer.java:520)
        at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:167)
        at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:116)
        at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:79)
Caused by: java.io.EOFException
        at java.io.DataInputStream.readInt(DataInputStream.java:392)
        at org.apache.jute.BinaryInputArchive.readInt(BinaryInputArchive.java:63)
        at org.apache.zookeeper.server.persistence.FileHeader.deserialize(FileHeader.java:64)
        at org.apache.zookeeper.server.persistence.FileTxnLog$FileTxnIterator.inStreamCreated(FileTxnLog.java:594)
        at org.apache.zookeeper.server.persistence.FileTxnLog$FileTxnIterator.createInputArchive(FileTxnLog.java:613)
        at org.apache.zookeeper.server.persistence.FileTxnLog$FileTxnIterator.goToNextLog(FileTxnLog.java:579)
        at org.apache.zookeeper.server.persistence.FileTxnLog$FileTxnIterator.next(FileTxnLog.java:661)
        at org.apache.zookeeper.server.persistence.FileTxnSnapLog.restore(FileTxnSnapLog.java:204)
        at org.apache.zookeeper.server.ZKDatabase.loadDataBase(ZKDatabase.java:223)
        at org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:530)
        ... 4 more

解决办法:

# 清空datadir下的version-2
$ cat /etc/zookeeper/conf.dist/zoo.cfg | grep datadir
datadir=/var/lib/zookeeper 
$ cd /var/lib/zookeeper 
$ ls 
myid version-2
$ cp -r version-2 version-2_bak
$ rm -rf version-2/*

# 重启
$ zkServer.sh  start 

 

© 著作权归作者所有

共有 人打赏支持
刀锋
粉丝 2
博文 399
码字总数 301440
作品 0
济南
程序员
私信 提问
生产系统RMAN备份失败ORA-00245

一、环境描述 AIX 6.1 Oracle 11.2.0.3 三节点RAC 二、问题描述 1.全库备份出错 Starting Control File and SPFILE Autobackup at 04-NOV-2017 10:54:04 released channel: d1 released chan......

roidba
2017/11/04
0
0
ORACLE使用RMAN对SYSTEM表空间进行介质恢复

注意:数据库应该支持在归档模式。 1.对SYSTEMG表空间做一个备份 [oracle@bys001 ~]$ rman target / Recovery Manager: Release 11.2.0.1.0 - Production on Tue Sep 17 10:42:18 2013 Copyr......

长平狐
2013/09/17
46
0
在4k扇区的磁盘上执行dbca会报ORA-27047 错误

就是在12.2之前版本不支持windows下4k sector原生磁盘,解决办法,修改为非原生磁盘,或等待12.2 具体: DBCA Getting Error ORA-27047 Due to 4K Sector Disks (文档 ID 2097255.1) In this ...

tututu_jiang
09/25
0
0
Unable to load NLS charset,U盘挂载不了,USB挂载时提示“No Such Device”,mount: Mounting /dev/sda1 on /mnt failed: No such device

其实这是内核配置问题,主要是文件系统不全,当然,USB驱动和Mass storage/SCSI disk/VFat支持要选上,如果还不行,请参考如下: 1、提示 Unable to load NLS charset cp437 FAT: codepage c...

长平狐
2012/06/12
2.1K
0
[20171225]没有备份数据文件的恢复.txt

[20171225]没有备份数据文件的恢复.txt --//别人问的问题,增加了数据文件没有备份,如何恢复,实际上很简单,因为当前控制文件有记录建立时间只要从建立数据文件开始的 --//归档日志都存在恢复是...

lfreeali
2017/12/25
0
0

没有更多内容

加载失败,请刷新页面

加载更多

2135亿背后的双11项目协作怎么玩?

2018天猫双11已经收官,2135亿元的成交额再度刷新纪录,这是一场阿里巴巴经济体的深度协作。 在这个大协作项目中,项目协作难题难以想象:如何保证众多部门、百个核心产品、千个垂直项目、几...

阿里云云栖社区
4分钟前
0
0
Golang MD5 加密使用方法

用法一: str:="123456"data:=[]byte(str)h := md5.New()h.Write(data)output := h.Sum(nil)fmt.Println(fmt.Sprintf("%x",output)) 结果: e10adc3949ba59abbe56e057f20f883e 用......

lwkai
10分钟前
0
0
揭秘 | 双11逆天记录背后的数据库技术革新

每一个数字背后 都需要强大的技术支撑 Higher, Faster, Smarter 是我们不变的追求 技术无边界 创新无止境 原文链接

阿里云官方博客
14分钟前
0
0
深入解析React-redux插件入门

react-redux是使用redux开发react时使用的一个插件,另外插一句,redux不是react的产品,vue和angular中也可以使用redux;下面简单讲解,如何使用react-redux来开发react。 描述 这个插件可以...

前端攻城老湿
18分钟前
0
0
创建定长code

前言 有的时候我们需要基于现有的code进行改造,但是改造的一个前提可能是对于code长度有一定的要求,比如我们做分库分表,准备在code上做文章。 由于历史原因不同的渠道产生的code有几种不同...

春哥大魔王的博客
20分钟前
0
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部