File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed
hbase-shell/src/main/ruby/shell/commands Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,10 @@ module Commands
22
22
class Assign < Command
23
23
def help
24
24
<<-EOF
25
- Assign a region. Use with caution. If region already assigned,
26
- this command will do a force reassign. For experts only.
25
+ Assign a region. It could be executed only when region in expected state(CLOSED, OFFLINE).
26
+ In addition, you can use "assigns" command available on HBCK2 tool to skip the state check.
27
+ (For more info on HBCK2: https://github.com/apache/hbase-operator-tools/blob/master/hbase-hbck2/README.md)
28
+ Use with caution. For experts only.
27
29
Examples:
28
30
29
31
hbase> assign 'REGIONNAME'
Original file line number Diff line number Diff line change @@ -22,11 +22,14 @@ module Commands
22
22
class Unassign < Command
23
23
def help
24
24
<<-EOF
25
- Unassign a region. Unassign will close region in current location and then
26
- reopen it again. Pass 'true' to force the unassignment ('force' will clear
27
- all in-memory state in master before the reassign. If results in
28
- double assignment use hbck -fix to resolve. To be used by experts).
29
- Use with caution. For expert use only. Examples:
25
+ Unassign a region. It could be executed only when region in expected state(OPEN).
26
+ Pass 'true' to force the unassignment ('force' will clear all in-memory state in
27
+ master before the reassign. If results in double assignment use hbck -fix to resolve.
28
+ To be used by experts).
29
+ In addition, you can use "unassigns" command available on HBCK2 tool to skip the state check.
30
+ (For more info on HBCK2: https://github.com/apache/hbase-operator-tools/blob/master/hbase-hbck2/README.md)
31
+ Use with caution. For experts only.
32
+ Examples:
30
33
31
34
hbase> unassign 'REGIONNAME'
32
35
hbase> unassign 'REGIONNAME', true
You can’t perform that action at this time.
0 commit comments