[
https://issues.apache.org/jira/browse/HBASE-22765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16896716#comment-16896716
]
Junhong Xu commented on HBASE-22765:
------------------------------------
There already exists a command 'decommission_regionservers', which is very
similar to move_server, so it is unnecessary to add another command
'move_server'. But there is still a chance for move_table.For example, there is
a hot spot for a table(maybe hbase:meta), one solution is the table is assigned
to a list of servers exclusively. The operations are as follows: 1) disable
balancer 2) decommission these regionservers 3) recommission the regionservers
4) move table to these regionservers. When the peak flow rate passes away,
enable the balancer. To be more clear, 'move_table_to_regionservers' may be
better.
> 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)