hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matteo Bertozzi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-16010) Put draining function through Admin API
Date Mon, 13 Jun 2016 16:27:21 GMT

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

Matteo Bertozzi commented on HBASE-16010:
-----------------------------------------

how does the getDrainingRegions() works? doesn't this just turn out to be getOnlineRegions(ServerName)?
I don't remember anything in the AM or ServerManager that keeps track of regions moving because
of the server in the draining list.

or was the method supposed to be a List<ServerName> getDrainingRegionServers()? which
is what the ServerManager.getDrainingServersList()?

(pretty sure that you already know this, but just to make it clear. we need to also add Master
RPCs if we want to add support for secure clusters and ACLs. and we probably need to have
a fallback to zk calls if the client is new but the server is old to keep compat, at least
in branch-1)

> 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: Matt Warhaftig
>            Priority: Minor
>
> 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.3.4#6332)

Mime
View raw message