[ 
https://issues.apache.org/jira/browse/HBASE-16010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16183340#comment-16183340
 ] 

Jerry He edited comment on HBASE-16010 at 9/27/17 10:06 PM:
------------------------------------------------------------

I'd like to get a closure on this ticket. I am ready to add the 'decommission' 
logic as suggested by the folks here.
Decommission:  Mark the region servers as 'draining' so that no regions will be 
added. Also unload the regions on them.
What about 'recommission'?  Remove the 'draining' mode.  Then load the regions? 
 What regions to load?  API accepts a list of regions to region servers? Or 
only remove the 'draining' mode, and let the balancer takes care?


was (Author: jinghe):
I'd like to get a closure on this ticket. I am ready to add the 'decommission' 
logic as suggested by the folks here.
Decommission:  Mark the region servers as 'draining' so that no regions will be 
added. Also unload the regions on them.
What about 'recommission'?  Remove the 'draining' mode.  Then load the regions? 
 What regions to load?  API accepts a list of regions to region servers? Or 
only remove the 'draining' mode, and let the balancer take care?

> Put draining function through Admin API
> ---------------------------------------
>
>                 Key: HBASE-16010
>                 URL: https://issues.apache.org/jira/browse/HBASE-16010
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Jerry He
>            Assignee: Jerry He
>            Priority: Minor
>             Fix For: 2.0.0
>
>         Attachments: hbase-16010-v1.patch, hbase-16010-v2.patch, 
> HBASE-16010-v3.patch
>
>
> Currently, there is no Amdin API for draining function. Client has to 
> interact directly with Zookeeper draining node to add and remove draining 
> servers.
> For example, in draining_servers.rb:
> {code}
>   zkw = org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.new(config, 
> "draining_servers", nil)
>   parentZnode = zkw.drainingZNode
>   begin
>     for server in servers
>       node = ZKUtil.joinZNode(parentZnode, server)
>       ZKUtil.createAndFailSilent(zkw, node)
>     end
>   ensure
>     zkw.close()
>   end
> {code}
> This is not good in cases like secure clusters with protected Zookeeper nodes.
> Let's put draining function through Admin API.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to