Title
Create new category
Edit page index title
Edit category
Edit link
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
Options
-i, --inputFiles <file1> [<file2>...] Specifies one or more files containing namespaces or table names, one per line.
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.
When specifying table names, always include the namespace (for example, default:my_table). Table names without namespaces may be misinterpreted as namespaces.
To repair missing regions by adding them back into hbase:meta, use the addFsRegionsMissingInMeta command.
Examples
Report missing regions for
table_1andtable_2in thedefaultnamespace:
Report missing regions for
table_1in thedefaultnamespace and for all tables in the namespacens1:
Report missing regions for tables listed in
fileName1andfileName2: