hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: How to detect whether hbase cluster is up and ready for accepting requests.
Date Wed, 02 Sep 2015 02:53:01 GMT
If you mean events related to region transition, to my knowledge, there is no much notification.


You need to poll cluster status. 



> On Sep 1, 2015, at 7:46 PM, James Teng <tenglinxiao@outlook.com> wrote:
> 
> Can we register any observer or listener for related events? so we can customize some
actions when the cluster is up.
> 
> uknow.
> ________________________________________
> From: Ted Yu <yuzhihong@gmail.com>
> Sent: Tuesday, September 1, 2015 2:37 PM
> To: user@hbase.apache.org
> Subject: Re: How to detect whether hbase cluster is up and ready for accepting requests.
> 
> Looks like the link Samir shared is missing the following method:
> 
>  public Map<String, RegionState> getRegionsInTransition() {
> 
> FYI
> 
>> On Tue, Sep 1, 2015 at 5:28 AM, Samir Ahmic <ahmic.samir@gmail.com> wrote:
>> 
>> Hi,
>> Depending on your hbase version you can get ClusterStatus over api.
>> 
>> https://hbase.apache.org/apidocs/org/apache/hadoop/hbase/ClusterStatus.html
>> 
>> Regards
>> Samir
>> 
>> On Tue, Sep 1, 2015 at 2:03 PM, James Teng <tenglinxiao@outlook.com>
>> wrote:
>> 
>>> Just as mentioned in the subject, is there any api to detect whether
>>> cluster is up, all regions are opened and ready for requests?
>>> 
>>> 
>>> 
>>> uknow.
>> 

Mime
View raw message