问题如下:
- ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializingat org.apache.hadoop.hbase.master.HMaster.checkInitialized(HMaster.java:2452)at org.apache.hadoop.hbase.master.HMaster.checkNamespaceManagerReady(HMaster.java:2457)at org.apache.hadoop.hbase.master.HMaster.createNamespace(HMaster.java:2630)at org.apache.hadoop.hbase.master.MasterRpcServices.createNamespace(MasterRpcServices.java:453)at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:58599)at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2339)at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:123)at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:188)at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:168)
解决办法:
- (清除hbase原有的所有数据)
1、hadoop的bin目录下,执行命令以下命令清除Hbase数据
hadoop fs -rm -r /hbase
2、连接ZK,执行以下命令清除Hbase数据
[link999@hadoop102 zookeeper]$ bin/zkCli.sh -server 127.0.0.1:2181rmr /hbase
3、重启ZK、重启hadoop(hdfs、yarn)、重启hbase
之后可以正常使用
参考文章:http://www.manongjc.com/detail/40-wusaeobbqibrftb.html