hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jerry He (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-16010) Put draining function through Admin API
Date Fri, 10 Mar 2017 18:18:04 GMT

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

Jerry He commented on HBASE-16010:

I was trying to give myself more time to think, but forgot to get back to it.  Sorry about
The current patch provides API via master to put region servers in 'drain' mode indicating
no regions should be assigned here.
The argument is whether this JIRA should include additional work to actually move the regions
out from the affected server, again carried out on master, thus providing a true 'decommission'
feature, which is not available anywhere yet.  A rb script currently does part of the work.
I like the idea. If the contributor will extend the work, I will be glad to help.
There was concern doing the bulk move of the regions on the master at the moment given the
ongoing work in the AM proc.

> 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",
>   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

View raw message