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:
- In the environment where the client is installed, perform kinit authentication as user hbase.
- Run the hbase zkcli command to go to the ZooKeeper CLI.
- 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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.