Schedules a ServerCrashProcedure (SCP) for one or more specified RegionServers.
Command Syntax
hbase hbck -j <path-to-hbck2-jar> scheduleRecoveries [<SERVERNAME>... | -i <INPUT_FILE>...]Options
-i, --inputFiles <file1> [<file2>...]
Specifies one or more files containing RegionServer names, one per line.
Description
Use this command to manually initiate recovery for RegionServers that have crashed or become unresponsive. Each server must be specified in the following format:
<HOSTNAME>,<PORT>,<STARTCODE>You can find RegionServer names in this format in the HBase Master UI or in the HBase logs.
This command is supported in:
- HBase 2.0.3
- HBase 2.1.2
- HBase 2.2.0 and newer
Return Value
- One or more PIDs of the created ServerCrashProcedures, or
-1if no procedures were created (Check the Master logs for detailed reasons when no SCPs are initiated.)
Examples
- Schedule recovery for a specific RegionServer:
hbase hbck -j <path-to-hbck2-jar> scheduleRecoveries a.example.org,29100,1540348649479- Schedule recovery for multiple RegionServers listed in
fileName1:
hbase hbck -j <path-to-hbck2-jar> scheduleRecoveries -i fileName1Was this page helpful?