Table does not enable or disable in HBase

I got a strange problem. I was accessing my HBase tables through the API. Halfway at runtime, I got RegionNotServing for table "x". But My HRGionServers worked fine.

When I tried to list the tables from HBase Shell, I could not find the table "x". When I tried to disable table "x", she threw a TableNotEnabledException exception, and when I tried to turn on table "x" she threw me a TableNotDisabledException exception.

Joined to the Exeption I received:

hbase(main):002:0> disable 'x' ERROR: org.apache.hadoop.hbase.TableNotEnabledException: org.apache.hadoop.hbase.TableNotEnabledException: x at org.apache.hadoop.hbase.master.handler.DisableTableHandler.<init>(DisableTableHandler.java:75) at org.apache.hadoop.hbase.master.HMaster.disableTable(HMaster.java:1154) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.hbase.ipc.WritableRpcEngine$Server.call(WritableRpcEngine.java:364) at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:1336) Here is some help for this command: Start disable of named table: eg "hbase> disable 't1'" hbase(main):003:0> enable 'x' ERROR: org.apache.hadoop.hbase.TableNotDisabledException: org.apache.hadoop.hbase.TableNotDisabledException: x at org.apache.hadoop.hbase.master.handler.EnableTableHandler.<init>(EnableTableHandler.java:74) at org.apache.hadoop.hbase.master.HMaster.enableTable(HMaster.java:1142) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.hbase.ipc.WritableRpcEngine$Server.call(WritableRpcEngine.java:364) at org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:1336) Here is some help for this command: Start enable of named table: eg "hbase> enable 't1'" hbase(main):004:0> 
+8
hbase
source share
2 answers

I had a similar problem. The problem was that Zookeeper was holding the table. So I deleted the table manually by following these steps.

  • Enter hbase zookeper client mode with the hbase zkcli
  • Delete the table using delete /hbase/table/x
+16
source share

I had this problem, and it turned out that the server was raised by region, but for some reason it could not be reached. Instead of trying and debugging this, I restarted the region server, and that fixed it.

Sequence of events:

  • Something happened so that the server of the region fell into a bad state, where it was reported, but inaccessible
  • I tried to disconnect the table while this area server was in a bad state (without me knowing at that time). RPC timeout error received
  • I tried to reset the table, get the error "the table is not enabled or disabled." The HBase user interface reported an β€œunknown” compaction status for this table.
  • I noticed a failed bulk upload job, which said that he could not contact a specific server in the region.
  • The server of the rebooted region.
  • The HBase user interface now reports that the "none" table for compaction enables / disables / cancels shell operation
0
source share

All Articles