scheduleRecoveries (Hbck2)
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 Specifies one or more files containing RegionServer names, one per line.--inputFiles <file1> [<file2>...]
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
if no procedures were created (Check the Master logs for detailed reasons when no SCPs are initiated.)-1
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 fileName1

Have a suggestion?