unassign

Definition

Unassigns the defined Region. The command closes the Region in its current location and then reopens it again. Can be applied only to assigned Regions.

CAUTION
This command is for expert use only. In the case of double assignments, use hbck -fix to resolve conflicts.

Usage

unassign '<region_name>' | '<encoded_region_name>'[,
         <force_unassign>]
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)

force_unassign

Use true to force unassignment, i.e. to clear all in-memory states in Master before reassign (for experts only)

Examples

hbase(main):011:0> unassign 'wordcount2,m,1637833871529'
Took 1.1734 seconds
hbase(main):013:0> assign 'wordcount2,m,1637833871529'
Took 1.1425 seconds
hbase(main):014:0> unassign '2ff3683a90c4106432c540ddd0f57cba'
Took 1.1506 seconds
hbase(main):015:0> assign '2ff3683a90c4106432c540ddd0f57cba'
Took 1.1368 seconds
Found a mistake? Seleсt text and press Ctrl+Enter to report it