You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Junhong Xu (JIRA)" <ji...@apache.org> on 2019/08/01 07:56:00 UTC

[jira] [Resolved] (HBASE-22765) add move server & move table command in shell

     [ https://issues.apache.org/jira/browse/HBASE-22765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Junhong Xu resolved HBASE-22765.
--------------------------------
    Resolution: Duplicate

> add move server & move table command in shell 
> ----------------------------------------------
>
>                 Key: HBASE-22765
>                 URL: https://issues.apache.org/jira/browse/HBASE-22765
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Junhong Xu
>            Assignee: Junhong Xu
>            Priority: Major
>
> We add move_server and move_table command in shell internally to fix problems like restarting the regionserver etc and find it is very useful, so plan to port to branch-2 & branch-1
> {code}
> hbase(main):001:0> move_server
> ERROR: wrong number of arguments (0 for 1)
> Here is some help for this command:
> Move all regions of the source server to a given target server, or randomly to
> other servers if no target server specified
> NOTE:
> A server name is its host, port plus startcode. For example:
> host187.example.com,60020,1289493121758
> Examples:
>   hbase> move_server 'SOURCE_SEREVR', 'TARGET_SERVER'
>   hbase> move_server 'SOURCE_SERVER'
> hbase(main):002:0> move_table
> ERROR: wrong number of arguments (0 for 1)
> Here is some help for this command:
> Move all regions of the table to a regionserver. All regions will be moved to the
> given regionserver if the 'SERVER_NAME' is specified, or to a random regionserver if
> 'SERVER_NAME' is absent
> NOTE:
> A server name is its host, port plus startcode. For example:
> host187.example.com,60020,1289493121758
> Examples:
>   hbase> move_table 'TABLENAME', 'SERVER_NAME'
>   hbase> move_table 'TABLENAME'
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)