How Do I View Regions in the CLOSED State in an ENABLED Table?
Question
How do I view regions in the CLOSED state in an ENABLED table on the HBase client?
Procedure
- Log in to the node on which the HBase client is installed as a client installation user.
- Go to the client installation directory and configure the environment variables:
cd Client installation directory
source bigdata_env
- If Kerberos authentication is enabled for the cluster (the cluster is in security mode), run the following command to perform security authentication. If Kerberos authentication is disabled for the cluster (the cluster is in normal mode), skip this step.
kinit Component service user
- Run the following command to check the regions in the CLOSED state in an ENABLED table:
hbase hbck -j HBase/hbase/tools/hbase-hbck2-*.jar reportClosedRegions [-details] [<TABLENAME>...]
The command parameters are as follows:
- If -details is not specified, only the number of CLOSED regions is displayed. If -details is specified, the names of all CLOSED regions are displayed.
- If TABLENAME is not specified, all tables are queried by default.
- If "Closed region due to split" is displayed after the command is executed, the region status changes to CLOSED due to an ongoing split task. After the task is complete, the region is automatically removed from the meta table.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot