Re: Re: Re: question on "drain region servers"

2016-04-26 Thread Ted Yu
Please see HBASE-4298 where this feature was introduced. On Tue, Apr 26, 2016 at 5:12 AM, WangYQ wrote: > yes, there is a tool graceful_stop.sh to graceful stop regionserver, and > can move the regions back to the rs after rs come back. > but i can not find the

Re:Re: Re: question on "drain region servers"

2016-04-26 Thread WangYQ
yes, there is a tool graceful_stop.sh to graceful stop regionserver, and can move the regions back to the rs after rs come back. but i can not find the relation with drain region servers... i think drain region servers function is good, but can not think up with a pracital use case

Re: Re: question on "drain region servers"

2016-04-26 Thread Dejan Menges
One of use cases we use it is graceful stop of regionserver - you unload regions from the server before you restart it. Of course, after restart you expect HBase to move regions back. Now I'm not really remembering correctly, but I kinda remember that one of the features was at least that it will

Re:Re: question on "drain region servers"

2016-04-26 Thread WangYQ
thanks in hbase 0.99.0, I find the rb file: draining_servers.rb i have some suggestions on this tool: 1. if I add rs hs1 to draining_servers, when hs1 restart, the zk node still exists in zk, but hmaster will not treat hs1 as draining_servers i think when we add a hs to draining_servers,

Re: question on "drain region servers"

2016-04-25 Thread Ted Yu
Please take a look at: bin/draining_servers.rb On Mon, Apr 25, 2016 at 8:12 PM, WangYQ wrote: > in hbase, I find there is a "drain regionServer" feature > > > if a rs is added to drain regionServer in ZK, then regions will not be > move to on these regionServers > >

question on "drain region servers"

2016-04-25 Thread WangYQ
in hbase, I find there is a "drain regionServer" feature if a rs is added to drain regionServer in ZK, then regions will not be move to on these regionServers but, how can a rs be add to drain regionServer, we add it handly or rs will add itself automaticly