reportMissingRegionsInMeta (Hbck2)
Reports regions that exist as directories in HDFS but are missing from hbase:meta. This command is check-only and performs no repairs. The hbase:meta table must be online to run this command.
Command Syntax
hbase hbck -j <path-to-hbck2-jar> reportMissingRegionsInMeta [<NAMESPACE | NAMESPACE:TABLENAME>... | -i <INPUT_FILE>...]
Options
, -i Specifies one or more files containing namespaces or table names, one per line.--inputFiles <file1> [<file2>...]
Description
This command compares:
- Regions listed in hbase:meta, and
- Region directories present in HDFS
For each specified namespace or table, it identifies region directories on HDFS that do not have a corresponding entry in hbase:meta. These are reported as missing regions and are grouped by table.
If a table has no missing regions, the command prints a “no missing regions” message.
You may specify:
- One or more table names,
- One or more namespaces, or
- Any combination of both
If no arguments are provided, the command checks all regions across the cluster.
Info
When specifying table names, always include the namespace (for example, ). Table names without namespaces may be misinterpreted as namespaces.default:my_table
To repair missing regions by adding them back into hbase:meta, use the command.addFsRegionsMissingInMeta
Examples
- Report missing regions for
andtable_1in thetable_2namespace:default
hbase hbck -j <path-to-hbck2-jar> reportMissingRegionsInMeta default:table_1 default:table_2
- Report missing regions for
in thetable_1namespace and for all tables in the namespacedefault:ns1
hbase hbck -j <path-to-hbck2-jar> reportMissingRegionsInMeta default:table_1 ns1
- Report missing regions for tables listed in
andfileName1:fileName2
hbase hbck -j <path-to-hbck2-jar> reportMissingRegionsInMeta -i fileName1 fileName2

Have a suggestion?