move

Definition

Moves the specified Region. If the target Region Server is not defined, it is selected randomly.

TIP
You can check the new location of the specified Region via the locate_region command. Notice, that it may take some time for the changes to be returned by this command.

Usage

move '<encoded_region_name>'[, '<region_server_name>,<port_number>,<start_code>']
Arguments
Parameter Description

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)

region_server_name

A Region Server name

port_number

A port number

start_code

A Server start code

TIP
You can get <server_name>, <port_number>, and <start_code> using the status 'simple' command.

Examples

hbase(main):025:0> locate_region 'wordcount2','m'
HOST                                     REGION
 bds-adh-1.ru-central1.internal:16020    {ENCODED => 2ff3683a90c4106432c540ddd0f57cba, NAME => 'wordcount2,m,1637833871529.2ff3683a90c4106432c540ddd0f57cba.'
                                         , STARTKEY => 'm', ENDKEY => 'r'}
1 row(s)
Took 0.0011 seconds
=> #<Java::OrgApacheHadoopHbase::HRegionLocation:0x403f7aa2>
hbase(main):026:0> move '2ff3683a90c4106432c540ddd0f57cba', 'bds-adh-3.ru-central1.internal,16020,1642400781435'
Took 1.1472 seconds
hbase(main):030:0> locate_region 'wordcount2','m'
HOST                                     REGION
 bds-adh-3.ru-central1.internal:16020    {ENCODED => 2ff3683a90c4106432c540ddd0f57cba, NAME => 'wordcount2,m,1637833871529.2ff3683a90c4106432c540ddd0f57cba.'
                                         , STARTKEY => 'm', ENDKEY => 'r'}
1 row(s)
Took 0.0056 seconds
=> #<Java::OrgApacheHadoopHbase::HRegionLocation:0x42b43a6>
Found a mistake? Seleсt text and press Ctrl+Enter to report it