Help Center/ MapReduce Service/ Component Operation Guide (LTS)/ Using HBase/ HBase Troubleshooting/ How Do I View Regions in the CLOSED State in an ENABLED Table?
Updated on 2024-10-09 GMT+08:00

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?

This parameter is available only in MRS 3.3.0 or later.

Procedure

  1. Log in to the node on which the HBase client is installed as a client installation user.
  2. Go to the client installation directory and configure the environment variables:

    cd Client installation directory

    source bigdata_env

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

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