特征1:
hbase.client.RetriesExhaustedException: Can't get the locations
特征2:
hbase日志報錯如下:
org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/hbaseid
特征3:
unexpected error, closing socket connection and attempting reconnect
shell終端打開全部的shell,運行命令,檢查Zookeeper是否正常
命令:zkServer.sh status
如果發現zkServer.sh 出現 沒有運行的指令
關閉這台機器的Zookeeper
zkServer.sh stop
然后再
zkServer.sh start
exit; 退出hive終端,重新進入hive查詢測試
本人測試完成解決!
問題原因:
zookeeper 異常退出!