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?
setTableState (Hbck2)
Summarize Page
Copy Markdown
Open in ChatGPT
Open in Claude
Connect to Cursor
Connect to VS Code
Manually sets the state of an HBase table.
Command Syntax
Bash
hbase hbck -j <path-to-hbck2-jar> setTableState [<TABLENAME> <STATE> | -i <INPUT_FILE>...]Options
-i, --inputFiles <file1> [<file2>...]
Specifies one or more files containing table names and table states, one pair per line.
Possible Table States
Bash
ENABLEDDISABLEDDISABLINGENABLINGDescription
This command forcefully sets the state of a table in HBase. It is typically used when a table becomes stuck in an incorrect or inconsistent state.
You can check a table’s current state using the HBase shell:
Bash
hbase> get 'hbase:meta', '<TABLENAME>', 'table:state'Common cell values include:
\x08\x00→ ENABLED\x08\x01→ DISABLED
You can also use:
Bash
hbase> describe "<TABLENAME>"This provides a more readable view of the table schema and its current state.
Return Value
The command returns the previous state of the table before the update was applied.
Examples
- Enable the
userstable:
Bash
hbase hbck -j <path-to-hbck2-jar> setTableState users ENABLED- Set table states from a file (
fileName1):
Example fileName1 contents:
Bash
mytable DISABLEDanother_table ENABLEDRun the command:
Bash
hbase hbck -j <path-to-hbck2-jar> setTableState -i fileName1Type 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:
scheduleRecoveries (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