Help Center/ MapReduce Service/ Component Operation Guide (Normal)/ Using HBase/ HBase Troubleshooting/ How to Delete the residual Table Name on the ZooKeeper table-lock Node After a Table Creation Failure
Updated on 2024-10-08 GMT+08:00

How to Delete the residual Table Name on the ZooKeeper table-lock Node After a Table Creation Failure

Question

In security mode, a table fails to be created, and a new table name remains on the table-lock node (default path: /hbase/table-lock) of ZooKeeper. How do I clear the table name?

Answer

The detailed procedure is as follows:

  1. In the environment where the client is installed, perform kinit authentication as user hbase.
  2. Run the hbase zkcli command to go to the ZooKeeper CLI.
  3. Run the ls /hbase/table command in the ZooKeeper command line to check whether the new table name exists.
    • If yes, run the ls /hbase/table-lock command to check whether the new table name exists. If the new table exists, run the delete /hbase/table-lock/<table> command to delete the table. <table> indicates the residual table name.
    • If no, no further operation is required.