Created 06-01-2017 07:22 AM
I am getting an error in hbase while starting it in HDP. I am using HDP-2.3.2
ERROR while starting Hbase Master TableExistsexception and Loaded coprocessors
2016-09-17 04:47:58,238 FATAL [master:hb-qa:60000] master.HMaster: Master server abort: loaded coprocessors are: [] 2016-09-17 04:47:58,239 FATAL [master:hb-qa:60000] master.HMaster: Unhandled exception. Starting shutdown. org.apache.hadoop.hbase.TableExistsException: hbase:namespace at org.apache.hadoop.hbase.master.handler.CreateTableHandler.prepare(CreateTableHandler.java:133) at org.apache.hadoop.hbase.master.TableNamespaceManager.createNamespaceTable(TableNamespaceManager.java:232) at org.apache.hadoop.hbase.master.TableNamespaceManager.start(TableNamespaceManager.java:86) at org.apache.hadoop.hbase.master.HMaster.initNamespace(HMaster.java:1046) at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:925) at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:605) at java.lang.Thread.run(Thread.java:745)
Can someone help me with this?
Created 06-01-2017 07:37 AM
This might help you please try it,
There should be a table named by namespace for maintaining the inforamtion of tables, which is already exists as your error states. While starting the process HMaster it will create the namespace directory under /hbase directory So thats why it i showing the Table Exists Exception.
We have to manually repair the Hbase Metastore by using offline command as,
$HBASE_HOME/bin/hbase org.apache.hadoop.hbase.util.hbck.OfflineMetaRepair
Start Hbase.
If it is not working use the zookeeper client for removing it from the Hbase Master host,
$ZK_HOME/bin/zkCli.sh -server <ZK_SERVER> -> ls / -> rmr /hbase -> exit
Created 06-01-2017 07:27 AM
A workaround that i think at this point may be:
1) Stop All region servers
2) Login to Master then perform the removal of "/hbase-unsecure" (i assume your cluster is non kerberized)
hbase zkcli rmr /hbase-unsecure
3). Restart HBase
.
NOTE: You should always think twice before running "rmr /hbase-unsecure"
Created 06-01-2017 07:41 AM
@Jay SenSharma The /hbase-unsecure is not present in my case. No znode with the name /hbase-unsecure.
Created 06-01-2017 07:37 AM
This might help you please try it,
There should be a table named by namespace for maintaining the inforamtion of tables, which is already exists as your error states. While starting the process HMaster it will create the namespace directory under /hbase directory So thats why it i showing the Table Exists Exception.
We have to manually repair the Hbase Metastore by using offline command as,
$HBASE_HOME/bin/hbase org.apache.hadoop.hbase.util.hbck.OfflineMetaRepair
Start Hbase.
If it is not working use the zookeeper client for removing it from the Hbase Master host,
$ZK_HOME/bin/zkCli.sh -server <ZK_SERVER> -> ls / -> rmr /hbase -> exit
Created 06-01-2017 08:59 AM
Created 06-01-2017 09:03 AM
Thanks.