assign

Definition

Assigns the defined Region to one of Region Servers. Read more details about Regions assignment in the HBase documentation.

CAUTION
If the defined Region is already assigned, this command will force its reassign. Use with caution.

Usage

assign '<region_name>' | '<encoded_region_name>'
Arguments
Parameter Description

region_name

A Region name without its encoded part. For example, if the full Region name is wordcount2,m,1637833871529.2ff3683a90c4106432c540ddd0f57cba., then the region_name is wordcount2,m,1637833871529. You can get the full Region name and exclude its encoded part via the list_regions command output (the REGION_NAME field)

encoded_region_name

An encoded part of the Region name. For example, if the full Region name is wordcount2,m,1637833871529.2ff3683a90c4106432c540ddd0f57cba., then the encoded part is 2ff3683a90c4106432c540ddd0f57cba. You can get the full Region name and obtain its encoded part via the list_regions command output (the REGION_NAME field)

Examples

hbase(main):007:0> assign '2ff3683a90c4106432c540ddd0f57cba'
Took 1.2233 seconds
hbase(main):008:0> assign 'wordcount2,m,1637833871529'
Took 1.1642 seconds
Found a mistake? Seleсt text and press Ctrl+Enter to report it