hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Talat Uyarer <ta...@uyarer.com>
Subject Re: Region Server Info Port
Date Wed, 21 Jan 2015 22:48:08 GMT
Is there any extraction for zk connection frpm client side ?



2015-01-22 0:42 GMT+02:00 Ted Yu <yuzhihong@gmail.com>:
> HBaseAdmin provides this method:
>
>   public int getMasterInfoPort() throws IOException {
>
> However, there is no counterpart for region server info port.
>
> There're two options I can think of:
>
> 1. parse corresponding znode to extract this information
>
> 2. parse master UI to retrieve this information
>
> Cheers
>
> On Wed, Jan 21, 2015 at 2:25 PM, Talat Uyarer <talat@uyarer.com> wrote:
>
>> Hi Ted,
>>
>> I work on HBASE-4368. I try to reach
>> "http://[rs-server]:[info_port]/rs-status?format=json&filter=all url
>> fro getting task list on region server. But rs info_port can be change
>> depends on hbase installation.Is it possible learning rs's info port ?
>>
>> 2015-01-21 19:26 GMT+02:00 Ted Yu <yuzhihong@gmail.com>:
>> > bq. for reaching RS's webservices
>> >
>> > What information do you want to collect from region servers ?
>> > Have you considered using jmx ?
>> > See 8.3.5. JMX under
>> > http://hbase.apache.org/book.html#important_configurations
>> >
>> > Cheers
>> >
>> > On Wed, Jan 21, 2015 at 7:44 AM, Talat Uyarer <talat@uyarer.com> wrote:
>> >
>> >> Hi folks,
>> >>
>> >> I try to create new command for hbase client. It will show processlist
>> >> on RSs. I have a problem. I need RS's info port for reaching RS's
>> >> webservices. In testing side I can reach it with
>> >>
>> >>
>> TEST_UTIL.getMiniHBaseCluster.getMaster.getRegionServerInfoPort(ServerName).
>> >> However I can not reach Hmaster on client side. Is there anyway
>> >> learning RS infoport on client side ?
>> >>
>> >> P.s. Maybe you will say why you do not use regionserver.info.port. If
>> >> Hbase run on single machine as a pseduo distrubuted mod. the
>> >> configuration is not sample with real info port.
>> >>
>> >> Thanks
>> >>
>> >> --
>> >> Talat
>> >>
>>
>>
>>
>> --
>> Talat UYARER
>> Websitesi: http://talat.uyarer.com
>> Twitter: http://twitter.com/talatuyarer
>> Linkedin: http://tr.linkedin.com/pub/talat-uyarer/10/142/304
>>



-- 
Talat UYARER
Websitesi: http://talat.uyarer.com
Twitter: http://twitter.com/talatuyarer
Linkedin: http://tr.linkedin.com/pub/talat-uyarer/10/142/304

Mime
View raw message