啟動HBase Hmaster幾秒後消失
阿新 • • 發佈:2021-01-16
技術標籤:hbase
master.HMaster: Failed to become active
masterorg.apache.hadoop.ipc.RemoteException(java.io.IOException): File /hbase/.tmp/hbase.version could only be replicated to 0 nodes instead of minReplication (=ion.
master.HMaster: Unhandled exception. Starting shutdown.
org.apache.hadoop.ipc.RemoteException(java.io.IOException): File /hbase/.tmp/hbase.version could only be replicated to 0 nodes instead of minReplication (=ion.
這應該是hdfs下的 /hbase/.tmp/hbase.version 這個檔案有問題
檢視日誌
cd habse/logs
tali -300 hbase-root-master-four.log
解決方法
在zokeeper/bin 目錄下 啟動zokeeper客戶端
zkScli.sh
ls /
rmr /hbase
刪除hdfs下的hbase目錄
hdfs dfs -rm -r /hbase
關閉 可 開啟
zkServer.sh stop
zkServer.sh start