hbase cannot find an existing table

前端 未结 10 1456
执念已碎
执念已碎 2020-12-15 19:34

I set up a hbase cluster to store data from opentsdb. Recently due to reboot of some of the nodes, hbase lost the table \"tsdb\". I can still it on hbase\'s master node page

相关标签:
10条回答
  • 2020-12-15 19:58

    To expand on @Devin Bayer's answer, run:

    delete /hbase/table/<name_of_zombie_table>
    

    if you find any zombie tables being maintained by the zookeeper. For more help on this issue, you should google 'HBase zombie tables'.

    0 讨论(0)
  • 2020-12-15 20:03

    hbase-clean.sh --cleanZk

    It works well, simple enough.

    0 讨论(0)
  • 2020-12-15 20:11

    I am not very sure why you are unable to scan it. However, to recreate the table, you can try this:

    1) Delete all entries in the .META table for this table manually, and

    2) Delete the directory corresponding to this table from HDFS

    Try creating the table again after that.

    0 讨论(0)
  • 2020-12-15 20:13

    If you are using cdh4.3 then the path in zookeeper should be /hbase/table94/

    0 讨论(0)
  • 2020-12-15 20:16

    A bit late, maybe it's helpful to the searcher.

    1. Run the ZooKeeper shell hbase zkcli
    2. In the shell run ls /hbase/table
    3. Run rmr /hbase/table/TABLE_NAME
    4. Restart Hbase
    0 讨论(0)
  • 2020-12-15 20:16

    It is enough to remove the specified table from your zookeeper path. For example if zookeeper.znode.parent is configured to blob in hbase-site.xml you should start zkCli.sh in your zookeeper server shell and remove that directory by rmr /blob/table/tsdb command.

    0 讨论(0)
提交回复
热议问题