hbase list報錯 ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing

hbase 常見問題 Master is initializing 一、解決方案:code

  • 時間跟系統不一致 ntpdate 0.cn.pool.ntp.org //命令更新時間server

  • 是否啓動regionserverit

先啓動regionserver,而後在啓動Hmasterio

./hbase-daemon.sh start regionserverast

而後執行:集羣

./hbase-daemon.sh start mastercli

二、 當你使用已存在的zookeeper 時, 以上的方案都無論用,你剛打開集羣就有這樣的問題: 能夠清除掉 zookeeper 空間中的 /hbase 路徑 關閉 hbasezookeeper

cd $HBASE_HOME/bin
./hbase zkcli
ls /
rmr /hbase
ls /

ctrl + c 退出 zookeeper 清理掉 HDFS 上的 hbase 存儲路徑 hdfs dfs -rm -r /hbase 重啓 hbasedate

相關文章
相關標籤/搜索