Skip to content

Commit c81ef73

Browse files
bsglzvirajjasani
authored andcommitted
HBASE-24854 Correct the help content of assign and unassign commands in hbase shell
Closes #2241 Signed-off-by: Viraj Jasani <vjasani@apache.org> Signed-off-by: Wellington Chevreuil <wchevreuil@apache.org>
1 parent d2eb69d commit c81ef73

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

hbase-shell/src/main/ruby/shell/commands/assign.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ module Commands
2222
class Assign < Command
2323
def help
2424
<<-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.
2729
Examples:
2830
2931
hbase> assign 'REGIONNAME'

hbase-shell/src/main/ruby/shell/commands/unassign.rb

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,14 @@ module Commands
2222
class Unassign < Command
2323
def help
2424
<<-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:
3033
3134
hbase> unassign 'REGIONNAME'
3235
hbase> unassign 'REGIONNAME', true

0 commit comments

Comments
 (0)