Thanks Enis. I try reach rs's task web service for showing task list on shell like as web ui. Rs web service generate json I get it and I show it now.
I wonder Is it possible getting tasks in api without using rs's web service from client side. Thanks Talat On Jan 22, 2015 2:49 AM, "Stack" <st...@duboce.net> wrote: > On Wed, Jan 21, 2015 at 3:03 PM, Talat Uyarer <ta...@uyarer.com> wrote: > > > IMHO reaching rs info port impossible in client side. > > > > > You are right. > > You want the Tasks as JSON? > > > > > Should I do accepting about info port ? If I do that my code does not > work > > with pseduo installation. > > > > > We should add an API that returns pb of cluster info with stuff like info > port in it. Info port has been a bit of a bastard child; it doesn't fit > anywhere. Liu Shaohui did some nice work getting the info port to the > master. What is missing is getting it over the last stretch to the client. > > Thanks Talat, > St.Ack > > > > > On Jan 22, 2015 12:59 AM, "Ted Yu" <yuzhih...@gmail.com> wrote: > > > > > getRegionServerInfoPort() calls > > regionServerTracker.getRegionServerInfo(sn) > > > but RegionServerTracker is in hbase-server module :-( > > > > > > On Wed, Jan 21, 2015 at 2:48 PM, Talat Uyarer <ta...@uyarer.com> > wrote: > > > > > > > Is there any extraction for zk connection frpm client side ? > > > > > > > > > > > > > > > > 2015-01-22 0:42 GMT+02:00 Ted Yu <yuzhih...@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 <ta...@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 <yuzhih...@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 <ta...@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 > > > > > > > > > >