extraRegionsInMeta (Hbck2)
Reports regions that exist in hbase:meta but do not have corresponding region directories on the filesystem. The hbase:meta table must be online for this command to run.
Command Syntax
hbase hbck -j <path-to-hbck2-jar> extraRegionsInMeta [<NAMESPACE | NAMESPACE:TABLENAME>... | -i <INPUT_FILE>...]
Options
Option | Description |
| Removes all extra regions found in hbase:meta. |
| Specifies one or more files containing namespaces or table names, one per line. |
Description
For each specified namespace or table, this command compares the regions recorded in hbase:meta with the region directories present on the filesystem.
A region is reported as extra when:
- It exists in hbase:meta, and
- No matching region directory exists on the filesystem.
If you specify the option, all such extra regions will be removed from hbase:meta.--fix
Important Considerations
- Before running
, verify whether the reported extra regions overlap with existing valid regions.--fix- If an overlap exists, using
is typically the safest and most effective option.extraRegionsInMeta --fix
- If an overlap exists, using
- If the extra regions do not overlap, the
command may be a simpler alternative because it can recreate missing region directories when needed.assigns
Examples
- Report extra regions for
andtable_1in thetable_2namespace:default
hbase hbck -j <path-to-hbck2-jar> extraRegionsInMeta default:table_1 default:table_2
- Report extra regions for
in thetable_1namespace and all tables in namespacedefault:ns1
hbase hbck -j <path-to-hbck2-jar> extraRegionsInMeta default:table_1 ns1
- Fix (remove) extra regions for tables listed in
andfileName1:fileName2
hbase hbck -j <path-to-hbck2-jar> extraRegionsInMeta --fix -i fileName1 fileName2

Have a suggestion?