2016-03-22 17:22:18,758 DEBUG [master:InterFinance01:60000] lock.ZKInterProcessLockBase: Released /hbase/table-lock/hbase:namespace/write-master:600000000000004
2016-03-22 17:22:18,758 FATAL [master:InterFinance01:60000] master.HMaster: Master server abort: loaded coprocessors are: []
2016-03-22 17:22:18,760 FATAL [master:InterFinance01:60000] master.HMaster: Unhandled exception. Starting shutdown.
org.apache.hadoop.hbase.T ableExistsException: 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:1055)
at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:928)
at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:608)
at java.lang.Thread.run(Thread.java:745)
2016-03-22 17:22:18,764 INFO [master:InterFinance01:60000] master.HMaster: Aborting
2016-03-22 17:22:18,765 DEBUG [master:InterFinance01:60000] master.HMaster: Stopping service threads
2016-03-22 17:22:18,758 FATAL [master:InterFinance01:60000] master.HMaster: Master server abort: loaded coprocessors are: []
2016-03-22 17:22:18,760 FATAL [master:InterFinance01:60000] master.HMaster: Unhandled exception. Starting shutdown.
org.apache.hadoop.hbase.T ableExistsException: 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:1055)
at org.apache.hadoop.hbase.master.HMaster.finishInitialization(HMaster.java:928)
at org.apache.hadoop.hbase.master.HMaster.run(HMaster.java:608)
at java.lang.Thread.run(Thread.java:745)
2016-03-22 17:22:18,764 INFO [master:InterFinance01:60000] master.HMaster: Aborting
2016-03-22 17:22:18,765 DEBUG [master:InterFinance01:60000] master.HMaster: Stopping service threads
2016-03-22 17:22:18,765 INFO [CatalogJanitor-InterFinance01:60000] master.CatalogJanitor: CatalogJanitor-InterFinance01:60000 exiting
从红色字体可以看出是因为hbase的表已经存在,但又没有表数据造成的。
产生的原因是,这里重新格式化了hdfs然后在启动hbase时出现这个问题。
解决办法:删除zookeeper上的表数据
1.${ZOOKEEPER}/bin/zkCli.sh登录到zookeeper
2.执行rmr /hbase删除hbase的数据