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

Copy

Options

OptionDescription
-o, --overrideOverride 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

Copy

Example 2: Assign a large list of regions in batches

Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated