PleaseHoldException
启动hbase后,输入list报错:
ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
at org.apache.hadoop.hbase.master.HMaster.checkInitialized(HMaster.java:1889)
at org.apache.hadoop.hbase.master.MasterRpcServices.getTableDescriptors(MasterRpcServices.java:779)
at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:42402)
at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2049)
at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:111)
at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:133)
at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:108)
at java.lang.Thread.run(Thread.java:745)
检查文件:
hdfs fsck / -locations -blocks -files
当时没有截图,其中有段如下:
Total symlinks: 0 (Files currently being written: 8)
发现有8个文件处于打开状态。说明当时正在写文件时断电了,因此需要删除这8个文件。
查看哪些文件正在打开中:
hadoop fsck / -openforwrite
依次删除文件:
Hadoop dfs -rm
/hbase/WALs/z1,60040,1513823979473/z1%2C60040%2C1513823979473.default.1513823986000
再次检查:
hadoop fsck / -openforwrite
再重启hbase即可。