[ https://issues.apache.org/jira/browse/HBASE-16010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15796815#comment-15796815 ]
Enis Soztutar commented on HBASE-16010: --------------------------------------- I actually want to fix the drain script, move away from it and implement decommissioning in the master side properly, as does mighty [~larsgeorge]. There are a couple of threads going around in the dev mailing list. HBASE-10367 is the main issue. I was thinking that we can introduce the decommission APIs as is in this jira, and later on follow up with actually moving the region mover to be executed inside the master in the same API call. So in that sense, the API names will be for future use when we will do the actual decommissioning. > 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 > Fix For: 2.0.0 > > Attachments: HBASE-16010-v3.patch, hbase-16010-v1.patch, > hbase-16010-v2.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.3.4#6332)