assigns (Hbck2)

Performs a raw assign of one or more regions. This command can be used even during Master initialization when the -skip flag is used (use with caution).

It bypasses HBase Coprocessors for direct, low-level region assignment.


Command

hbase hbck -j <path-to-Hbck2-jar> assigns [OPTIONS] [<ENCODED_REGIONNAME>... | -i <INPUT_FILE>...]

Options

Option

Description

-o, --override

Override ownership if the region is currently owned by another procedure.

-i, --inputFiles <file1> [<file2>...]

Take one or more files containing encoded region names (one per line) as input.

-b, --batchSize <arg>

Number of regions to process in a single batch. Consider using this option with large lists of regions to prevent CallTimeoutException. By default, batchSize is -1, meaning no batching is done.


Description

  • Provide one or more encoded region names (for example: de00010733901a05f5a2a3a382e27dd4) to assign those regions.

  • The hbase:meta region has a fixed encoded name: 1588230740

Return Value

  • Returns the PID(s) of created AssignProcedure operations.

  • Returns -1 if no procedures were created.

Usage Examples

Example 1: Assign meta region + user region

hbase hbck -j <path-to-Hbck2-jar> assigns 1588230740 de00010733901a05f5a2a3a382e27dd4

Example 2: Assign a large list of regions in batches

hbase hbck -j <path-to-Hbck2-jar> assigns -i fileName1 fileName2 -b 500


  Last updated