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>
This commit is contained in:
Zheng Wang 2020-08-13 15:31:58 +05:30 committed by Viraj Jasani
parent d2eb69df77
commit c81ef7368e
No known key found for this signature in database
GPG Key ID: B3D6C0B41C8ADFD5
2 changed files with 12 additions and 7 deletions

View File

@ -22,8 +22,10 @@ module Shell
class Assign < Command class Assign < Command
def help def help
<<-EOF <<-EOF
Assign a region. Use with caution. If region already assigned, Assign a region. It could be executed only when region in expected state(CLOSED, OFFLINE).
this command will do a force reassign. For experts only. In addition, you can use "assigns" command available on HBCK2 tool to skip the state check.
(For more info on HBCK2: https://github.com/apache/hbase-operator-tools/blob/master/hbase-hbck2/README.md)
Use with caution. For experts only.
Examples: Examples:
hbase> assign 'REGIONNAME' hbase> assign 'REGIONNAME'

View File

@ -22,11 +22,14 @@ module Shell
class Unassign < Command class Unassign < Command
def help def help
<<-EOF <<-EOF
Unassign a region. Unassign will close region in current location and then Unassign a region. It could be executed only when region in expected state(OPEN).
reopen it again. Pass 'true' to force the unassignment ('force' will clear Pass 'true' to force the unassignment ('force' will clear all in-memory state in
all in-memory state in master before the reassign. If results in master before the reassign. If results in double assignment use hbck -fix to resolve.
double assignment use hbck -fix to resolve. To be used by experts). To be used by experts).
Use with caution. For expert use only. Examples: In addition, you can use "unassigns" command available on HBCK2 tool to skip the state check.
(For more info on HBCK2: https://github.com/apache/hbase-operator-tools/blob/master/hbase-hbck2/README.md)
Use with caution. For experts only.
Examples:
hbase> unassign 'REGIONNAME' hbase> unassign 'REGIONNAME'
hbase> unassign 'REGIONNAME', true hbase> unassign 'REGIONNAME', true