I am facing a weird problem. I was accessing my HBase tables through an API. Midway during execution I got a RegionNotServing for my table \'x\'. But My HRegionServers were work
I had a similar issue before. The problem was because Zookeeper was holding the table. So I deleted the table manually by following the below steps
hbase zkcli
commanddelete /hbase/table/x
I had faced similar issue on Production. The problem was specific Hbase Table Meta corrupted. So I deleted the table manually from zookeeper using below
1. Enter into hbase zookeper client mode using hbase zkcli command
2. Delete the table using the command delete /hbase/table/x
3. Delete the table using the command delete /hbase/table-lock/x
After following above command, restarted Hbase but issue still appeared so I deleted region of Hbase Table from Hbase system Table using below
1. Enter into hbase using hbase shell command
2. Delete the Table Regions which is stuck in transition state using below command
deleteall 'hbase:meta','XXX,Table_region.'
I just had this issue and it turned out that a region server was up but not able to be reached for some reason. Rather than try and debug this, I restarted the region server and this fixed everything.
Sequence of events:
the follow steps was useful to me:
get 'hbase:meta', '<AFFECTED_TABLE_NAME>', 'table:state'
\x08\x00
(Enabled) or \x08\x01
(Disabled)put 'hbase:meta','<AFFECTED_TABLE_NAME>','table:state',"\b\0"
to make the table enable