2016-06-12 147 views
2

我經歷了由於哪個核心遭到破壞而發生的全磁盤空間(100%)問題。正如我GOOGLE了,我已經刪除了version-2datalog/version-2的所有快照。無法啓動動物園管理員

現在/var/zookeeper只有myid文件和__backup文件夾。

雖然我嘗試啓動飼養員我收到以下錯誤

2016-06-12 12:43:36,512 [myid:4] - ERROR [main:[email protected]] - Parent /search/cluster1/overseer/queue missing for /search/cluster1/overseer/queue/qn-0000000288 
2016-06-12 12:43:36,514 [myid:4] - ERROR [main:[email protected]] - Unable to load database on disk 
java.io.IOException: Failed to process transaction type: 1 error: KeeperErrorCode = NoNode for /search/cluster1/overseer/queue 
     at org.apache.zookeeper.server.persistence.FileTxnSnapLog.restore(FileTxnSnapLog.java:153) 
     at org.apache.zookeeper.server.ZKDatabase.loadDataBase(ZKDatabase.java:223) 
     at org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:417) 
     at org.apache.zookeeper.server.quorum.QuorumPeer.start(QuorumPeer.java:409) 
     at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:151) 
     at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:111) 
     at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78) 
Caused by: org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /search/cluster1/overseer/queue 
     at org.apache.zookeeper.server.persistence.FileTxnSnapLog.processTransaction(FileTxnSnapLog.java:211) 
     at org.apache.zookeeper.server.persistence.FileTxnSnapLog.restore(FileTxnSnapLog.java:151) 
     ... 6 more 
2016-06-12 12:43:36,514 [myid:4] - ERROR [main:[email protected]] - Unexpected exception, exiting abnormally 
java.lang.RuntimeException: Unable to run quorum server 
     at org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:454) 
     at org.apache.zookeeper.server.quorum.QuorumPeer.start(QuorumPeer.java:409) 
     at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:151) 
     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: Failed to process transaction type: 1 error: KeeperErrorCode = NoNode for /search/cluster1/overseer/queue 
     at org.apache.zookeeper.server.persistence.FileTxnSnapLog.restore(FileTxnSnapLog.java:153) 
     at org.apache.zookeeper.server.ZKDatabase.loadDataBase(ZKDatabase.java:223) 
     at org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:417) 
     ... 4 more 
Caused by: org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /search/cluster1/overseer/queue 
     at org.apache.zookeeper.server.persistence.FileTxnSnapLog.processTransaction(FileTxnSnapLog.java:211) 
     at org.apache.zookeeper.server.persistence.FileTxnSnapLog.restore(FileTxnSnapLog.java:151) 
     ... 6 more 

你能幫我與此修復程序。

謝謝。

回答

2

顯然你的動物園管理員似乎處於不一致的狀態,它試圖找到一個缺失的節點。查看zoo.cfg文件,查看ZooKeeper的dataDir設置是否一致。

或者這可能是Zookeeper的一個已知問題。 https://issues.apache.org/jira/browse/ZOOKEEPER-1813