解决ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing

Problem Description

This problem hbase shelloccurs when I use the shell command after startup .ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing

ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing
	at org.apache.hadoop.hbase.master.HMaster.checkInitialized(HMaster.java:2829)
	at org.apache.hadoop.hbase.master.HMaster.listNamespaces(HMaster.java:3141)
	at org.apache.hadoop.hbase.master.MasterRpcServices.listNamespaces(MasterRpcServices.java:1050)
	at org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java)
	at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:392)
	at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:133)
	at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:359)
	at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:339)

Cause Analysis:

The reason for this problem may be that the metadata of your HBase in zookeeper has not been completely deleted. I have installed HBase before, and then recently reinstalled other versions, so the metadata of the previous version of HBase in zookeeper has not been completely deleted.

insert image description here

solution:

The client connected to zookeeper can delete the original HBase metadata

bin/zkCli.sh

Then use the following command to delete the metadata information of HBase:

deleteall /hbase

Then restart the HBase service. Note: When deleting metadata, the HBase service must be stopped.

Guess you like

Origin blog.csdn.net/m0_47256162/article/details/131806381