Documentation
ODP 3.3.6.3-1
Release Notes
What is ODP
Installation
Component User guide and Installation Instructions
Upgrade Instructions
Downgrade Instructions
Reference Guide
Security Guide
Troubleshooting Guide
Uninstall ODP
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
addFsRegionsMissingInMeta (Hbck2)
Summarize Page
Copy Markdown
Open in ChatGPT
Open in Claude
Connect to Cursor
Connect to VS Code
Use the addFsRegionsMissingInMeta command to re-add regions to the
hbase:meta table when the corresponding region directories exist in
HDFS but are missing from hbase:meta.
This issue often occurs if hbck1 OfflineMetaRepair was run against an HBase 2.x cluster.
hbase:meta must be online for this command to
work.
Command
hbase hbck -j <path-to-Hbck2-jar> addFsRegionsMissingInMeta [OPTIONS] [<NAMESPACE|NAMESPACE:TABLENAME>... | -i <INPUTFILES>...]Options
| Option | Description |
|---|---|
| -i, --inputFiles <file1> [<file2>...] | Take one or more files containing namespace or table names (one per line) as input. |
| -o, --outputFile <name|prefix> | Name/prefix of the file(s) to dump region names. These output files can then be used as input for the assigns command. |
| -n, --numLines <arg> | Number of lines (maximum) to be written to each output file when used in conjunction with -o. If -o is specified but -n is not, all region names will be dumped into a single file. |
What the Command Does
- Compares regions listed in
hbase:metawith region directories in HDFS\ - Identifies regions missing from
hbase:meta\ - Recreates region entries by reading their
regioninfofrom HDFS\ - Inserts them into
hbase:metain CLOSED state (not assigned, not cached)
Post-Run Actions
- Run the printed assign commands to bring the re-created regions online
- For HBase < 2.3.0, perform a rolling HMaster restart
- before* running assignments
Usage Examples
Example 1
hbase hbck -j <path-to-Hbck2-jar> addFsRegionsMissingInMeta default:tbl_1 n1:tbl_2 n2Example 2
hbase hbck -j <path-to-Hbck2-jar> addFsRegionsMissingInMeta -i fileName1 fileName2Example 3
hbase hbck -j <path-to-Hbck2-jar> addFsRegionsMissingInMeta \ -o outputFilePrefix \ -n 100 \ -i fileName1 fileName2Related Commands
reportMissingRegionsInMeta\fixMeta
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on Nov 13, 2025
Was this page helpful?
Next to read:
assigns (Hbck2)Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message