Support Questions
Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Innovation Accelerator group hub.

ERROR WHILE STARTING HBASE_MASTER_TableExistsSxception and Loaded coprocessors

Contributor

I am getting an error in hbase while starting it in HDP. I am using HDP-2.3.2

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?

1 ACCEPTED SOLUTION

Contributor

@ Nitin

ROOT CAUSE:- There should be a table named by namespace for maintaining the info of tables, which is already exists on /hbase directory , While starting the process HMaster it will create the namespace directory under /hbase directory So it is showing the Table Exists Exception. SOLUTION:- We have to manually repair the /hbase metastore by using offline command as, $HBASE_HOME/bin/hbase org.apache.hadoop.hbase.util.hbck.OfflineMetaRepair Then start the process of HMASTER. IF this is not working Use the zookeeper client for removing it as, From the Hbase docker or any one of the docker. zookeeper-3.4.6/bin/zkCli.sh -server 192.168.1.90 ls / rmr /hbase ls / exit zookeeper-3.4.6/bin/zkCli.sh -server 192.168.1.91 ls / exit

View solution in original post

1 REPLY 1

Contributor

@ Nitin

ROOT CAUSE:- There should be a table named by namespace for maintaining the info of tables, which is already exists on /hbase directory , While starting the process HMaster it will create the namespace directory under /hbase directory So it is showing the Table Exists Exception. SOLUTION:- We have to manually repair the /hbase metastore by using offline command as, $HBASE_HOME/bin/hbase org.apache.hadoop.hbase.util.hbck.OfflineMetaRepair Then start the process of HMASTER. IF this is not working Use the zookeeper client for removing it as, From the Hbase docker or any one of the docker. zookeeper-3.4.6/bin/zkCli.sh -server 192.168.1.90 ls / rmr /hbase ls / exit zookeeper-3.4.6/bin/zkCli.sh -server 192.168.1.91 ls / exit