虛擬機器開機黑屏和zk啟動報磁碟滿錯誤
阿新 • • 發佈:2018-11-25
1、虛擬機器開機黑屏
無法進入登入linux,提示the configuration defaults for gnome power manager have not been installed correctly
可能是磁碟滿造成的
使用命令
find / -size +200M -exec du -h {} \;檢視大於200M的檔案(首選刪除日誌檔案)。
查詢出來大檔案刪除即可,測試可用,如果不是太多大檔案導致磁碟滿,可以使用下一種方式
以管理員身份執行CMD-輸入netsh winsock reset 重啟即可,
2中方式大家可以試試
2、啟動zk報錯
he accepted epoch, d4 is less than the current epoch, d5
可能是記憶體不足:部署zookeeper的伺服器磁碟滿了,引起服務異常,
2018-05-07 10:33:58,556 [myid:3] - INFO [main:[email protected]] - Reading snapshot /opt/data/zookeeper/version-2/snapshot.1900356f19
2018-05-07 10:33:58,966 [myid:3] - ERROR [main:[email protected] ] - Last transaction was partial.
2018-05-07 10:33:58,968 [myid:3] - ERROR [main:[email protected]] - Unable to load database on disk
java.io.IOException: The accepted epoch, 19 is less than the current epoch, 3a
at org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:645)
at org.apache.zookeeper.server.quorum.QuorumPeer.start(QuorumPeer.java:591)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:164)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:111)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78)
2018-05-07 10:33:58,970 [myid:3] - 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:649)
at org.apache.zookeeper.server.quorum.QuorumPeer.start(QuorumPeer.java:591)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.runFromConfig(QuorumPeerMain.java:164)
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: The accepted epoch, 19 is less than the current epoch, 3a
at org.apache.zookeeper.server.quorum.QuorumPeer.loadDataBase(QuorumPeer.java:645)
... 4 more
經過網上查詢,得到解決方法:
將zookeeper的version-2目錄備份一份,再重新建立一個新的version-2目錄,然後重新啟動zookeeper。
mv version-2.tmp
mkdir version-2
重啟即可,
希望可以幫助到大家