1. 程式人生 > >zookeeper節點啟動失敗

zookeeper節點啟動失敗

環境:zookeeper版本號:3.4.6,三個節點。

有一臺伺服器重啟了,用zkServer.sh  start 啟動是出錯,資訊如下:

[2016-10-11 10:47:49,715] ERROR Unable to load database on disk (org.apache.zookeeper.server.quorum.QuorumPeer)
java.io.IOException: Input/output error
        at java.io.FileInputStream.readBytes(Native Method)
        at java.io.FileInputStream.read(FileInputStream.java:242)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
        at java.io.FilterInputStream.read(FilterInputStream.java:133)
        at org.apache.zookeeper.server.persistence.FileTxnLog$PositionInputStream.read(FileTxnLog.java:460)
        at java.io.DataInputStream.readFully(DataInputStream.java:195)
        at java.io.DataInputStream.readFully(DataInputStream.java:169)
        at org.apache.jute.BinaryInputArchive.readBuffer(BinaryInputArchive.java:98)
        at org.apache.zookeeper.server.persistence.Util.readTxnBytes(Util.java:233)
        at org.apache.zookeeper.server.persistence.FileTxnLog$FileTxnIterator.next(FileTxnLog.java:620)
        at org.apache.zookeeper.server.persistence.FileTxnLog$FileTxnIterator.init(FileTxnLog.java:547)
        at org.apache.zookeeper.server.persistence.FileTxnLog$FileTxnIterator.<init>(FileTxnLog.java:522)
        at org.apache.zookeeper.server.persistence.FileTxnLog.read(FileTxnLog.java:354)
        at org.apache.zookeeper.server.persistence.FileTxnSnapLog.restore(FileTxnSnapLog.java:132)
        at org.apache.zookeeper.server.ZKDatabase.loadDataBase(ZKDatabase.java:223)
        at org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:450)
        at org.apache.zookeeper.server.quorum.QuorumPeer.start(QuorumPeer.java:440)
        at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:153)
        at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:111)
        at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78)
[2016-10-11 10:47:49,719] ERROR Unexpected exception, exiting abnormally (org.apache.zookeeper.server.quorum.QuorumPeerMain)
java.lang.RuntimeException: Unable to run quorum server 
        at org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:498)
        at org.apache.zookeeper.server.quorum.QuorumPeer.start(QuorumPeer.java:440)
        at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:153)
        at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:111)
        at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78)
Caused by: java.io.IOException: Input/output error
        at java.io.FileInputStream.readBytes(Native Method)
        at java.io.FileInputStream.read(FileInputStream.java:242)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
        at java.io.FilterInputStream.read(FilterInputStream.java:133)
        at org.apache.zookeeper.server.persistence.FileTxnLog$PositionInputStream.read(FileTxnLog.java:460)
        at java.io.DataInputStream.readFully(DataInputStream.java:195)
        at java.io.DataInputStream.readFully(DataInputStream.java:169)
        at org.apache.jute.BinaryInputArchive.readBuffer(BinaryInputArchive.java:98)
        at org.apache.zookeeper.server.persistence.Util.readTxnBytes(Util.java:233)
        at org.apache.zookeeper.server.persistence.FileTxnLog$FileTxnIterator.next(FileTxnLog.java:620)
        at org.apache.zookeeper.server.persistence.FileTxnLog$FileTxnIterator.init(FileTxnLog.java:547)
        at org.apache.zookeeper.server.persistence.FileTxnLog$FileTxnIterator.<init>(FileTxnLog.java:522)
        at org.apache.zookeeper.server.persistence.FileTxnLog.read(FileTxnLog.java:354)
        at org.apache.zookeeper.server.persistence.FileTxnSnapLog.restore(FileTxnSnapLog.java:132)
        at org.apache.zookeeper.server.ZKDatabase.loadDataBase(ZKDatabase.java:223)
        at org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:450)


解決方法:

1. 在配置檔案/usr/local/zookeeper-3.4.6/conf/zoo.cfg ,找到下面兩個配置的值

dataDir=/data/zookeeper_data
dataLogDir=/data/logs/zookeeper

2. 刪除兩個目錄:

/data/zookeeper_data/version-2

/data/logs/zookeeper/version-2

3.重新啟動:zkServer.sh  start 

相關推薦

zookeeper節點啟動失敗

環境:zookeeper版本號:3.4.6,三個節點。 有一臺伺服器重啟了,用zkServer.sh  start 啟動是出錯,資訊如下: [2016-10-11 10:47:49,715] ERROR Unable to load database on disk (o

zookeeper啟動失敗解決方法

今天和往常一樣開啟虛擬機器啟動zookeeper時報一下錯誤: 看了一下,原來是沒用root許可權登陸。。。 只需更改為su使用者再次啟動即可      最後,               &n

zookeeper啟動失敗 Error contacting service. It is probably not running.

查詢狀態顯示: Using config: /usr/local/solrcloud/zookeeper2/bin/../conf/zoo.cfg Error contacting service. It is probably not running. 1.myid沒有建立(dataDir

Ubuntu 16.04.1 LTS zookeeper-3.4.11安裝啟動失敗Error contacting service. It is probably not running.

騰訊雲伺服器Ubuntu 16.04.1 LTS zookeeper-3.4.11安裝啟動失敗 zookeeper安裝後啟動報許可權不足: [email protected]:/opt/zookeeper-3.4.8/bin$ ./zkServer.sh start ZooKeep

zookeeper啟動失敗

查詢狀態顯示: Using config: /usr/local/solrcloud/zookeeper2/bin/../conf/zoo.cfg Error contacting service. It is probably not running. 1.myid沒有

zookeeper zkServer.sh satrt啟動失敗,檢視狀態報錯Error contacting service. It is probably not running.

使用 zkServer.sh start 啟動 然後使用jps檢視發現zk並沒有成功啟動起來 1. 關閉防火牆:centos7  systemctl stop firewalld (我的沒有效果,) 2. 如果第一次安裝解壓的話 我們需要將zk目錄下,conf目錄中

zookeeper啟動失敗的排錯

1.執行zkServer.sh start 後顯示: JMX enabled by defaultUsing config:/home/hadoop/app/zookeeper-3.4.5/bin/../conf/zoo.cfgStarting zookeeper ...

hadoop在Master節點9000埠啟動失敗原因

由於公司測試需要,需搭建hbase叢集,在搭建的過程中,到hadoop安裝叢集的時候出現了9000埠一直未監聽,啟動時丟擲了以下告警資訊: Starting namenodes on [Master

zookeeper使用和原理探究 (注意linux下防火牆導致啟動失敗的坑,使用service iptables stop 關閉防火牆 使用service iptables status確認)

//建立一個Zookeeper例項,第一個引數為目標伺服器地址和埠,第二個引數為Session超時時間,第三個為節點變化時的回撥方法ZooKeeper zk =new ZooKeeper("127.0.0.1:2181", 500000,new Watcher() {           // 監控所有被觸

Zookeeper 節點操作,storm 啟動

[[email protected] zookeeper-3.4.6]# zkServer.sh status JMX enabled by default Using config: /user/local/zookeeper-3.4.6/bin/../conf

zookeeper偽叢集啟動失敗失敗:Invalid config, exiting abnormally

zookeeper 啟動失敗,檢視啟動日誌 : 2017-09-03 22:33:14,024 [myid:] - ERROR [main:[email protected]] - Invalid config, exiting abnormally org.a

zookeeper啟動失敗,zkServer.sh status 出錯

執行zookeeperd後顯示啟動成功: JMX enabled by default Using config: /data/programfiles/zookeeper-3.4.5/bin/../conf/zoo.cfg Starting zookeeper ... S

weblogic控制節點服務啟動失敗解決方法

問題概述: Info: unable to get file lock, will retry … 由於先前伺服器直接down掉了,所有程序都非正常的進行關閉了,也就導致了下次啟動weblogic的時候報了以下錯誤: <2018-1-5 下午05時0

hadoop節點nodemanager啟動失敗原因

節點啟動時沒有啟動NodeManager,查詢日誌後發現報錯 NodeManager from  slave1 doesn't satisfy minimum allocations 解決辦法: 1.修改 yarn-site.xml 中的yarn.scheduler.min

webpack-dev-server啟動失敗

target href -s 失敗 http ima pack pac html 學習webpack-dev-server過程中,項目路徑下執行webpack-dev-server,老是報錯,原來是配置項在colors在webpack2.0以上版本不需要進行配置了,

HBASE啟動失敗,Failed construction of Master: class org.apache.hadoop.hbase.master.HMaster

sta caused and tex runtime sla class -1 regions Master日誌錯誤:2015-12-02 06:34:32,394 ERROR [main] master.HMasterCommandLine: Master exiting

Oracle BI11啟動失敗

cal imp cts highlight wrapper sharp 64位 -c security 本人電腦win7 64位,Oracle biee11,啟動時報錯,提示如下: <2017-6-2 下午12時07分14秒 CST> <Notice&g

阿裏雲CentOS 7.2 MySQL服務啟動失敗的解決思路

阿裏雲 centos 7.2 mysql服務啟動失敗的解決思路阿裏雲 CentOS 7.2 MySQL服務啟動失敗的解決思路前言 :昨天剛剛搭建好的MySQL讓老大看了一下,經過測試已經完成任務。但是今天早晨來的時候發現服務器被關了,此時我的心情崩潰的,但是我非常冷靜的解決了MySQL問題。如下:啟動MySQ

Telnet 測試zookeeper是否啟動成功

linux telnet zookeeper kafka 在linux環境下,有些情況下,我們想看下是否成功啟動了Zookeeper,可以才用telnet的方式Steps: login in the linux os input the command: telnet localhost

xampp中apache點擊啟動失敗解決方法

expec 錯誤 his exp 使用 check eth you err 錯誤提示: 9:15:53 AM [Apache] Error: Apache shutdown unexpectedly.9:15:53 AM [Apache] This may be due