报错
hbase(main):002:0> status
1 active master, 0 backup masters, 2 servers, 0 dead, 0.0000 average load
Took 0.0730 seconds
hbase(main):003:0>
hbase(main):004:0*
hbase(main):005:0* create 'user_info',{NAME=>'base_info',VERSIONS=>3},{NAME=>'extra_info'}
ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
at org.apache.hadoop.hbase.master.HMaster.checkInitialized(HMaster.java:2826)
at org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:2032)
at org.apache.hadoop.hbase.master.MasterRpcServices.createTable(MasterRpcServices.java:659)
at org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java)
at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:418)
at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:133)
at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:338)
at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:318)
For usage try 'help "create"'
Took 9.0213 seconds
hbase(main):006:0>
原因 解决
1.删除hdfs中/hbase目录
2.删除zookeeper中/hbase目录
本文摘自 :https://blog.51cto.com/z