Table is neither enables nor disabled in HBase

后端 未结 4 2064
萌比男神i
萌比男神i 2021-02-20 16:43

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

相关标签:
4条回答
  • 2021-02-20 17:05

    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

    1. Enter into hbase zookeper client mode using hbase zkcli command
    2. Delete the table using the command delete /hbase/table/x
    0 讨论(0)
  • 2021-02-20 17:08


    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.'

    0 讨论(0)
  • 2021-02-20 17:19

    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:

    1. Something happened to make the region server get into a bad state where it was reported up but unreachable
    2. Tried to disable a table while that region server was in the bad state (unbeknownst to me at the time). Got an RPC timeout error
    3. Tried to drop the table, got error "table is not enabled or disabled". HBase UI was reporting 'unknown' compaction status for that table
    4. Noticed a failed bulk load job that said it could not reach the specific region server
    5. Restarted region server
    6. HBase UI now reported table as 'none' for compaction, enables/disables/drops worked in shell
    0 讨论(0)
  • 2021-02-20 17:22

    the follow steps was useful to me:

    1. enter into hbase shell
    2. get 'hbase:meta', '<AFFECTED_TABLE_NAME>', 'table:state'
    3. Notice the above "value". The value should either be \x08\x00 (Enabled) or \x08\x01 (Disabled)
    4. put 'hbase:meta','<AFFECTED_TABLE_NAME>','table:state',"\b\0" to make the table enable
    0 讨论(0)
提交回复
热议问题