scheduleRecoveries (Hbck2)

Schedules a ServerCrashProcedure (SCP) for one or more specified RegionServers.

Command Syntax

Bash
Copy

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:

Bash
Copy

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
  • -1 if no procedures were created (Check the Master logs for detailed reasons when no SCPs are initiated.)

Examples

  1. Schedule recovery for a specific RegionServer:
Bash
Copy
  1. Schedule recovery for multiple RegionServers listed in fileName1:
Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated