On Wed, Jan 21, 2015 at 3:03 PM, Talat Uyarer <[email protected]> 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" <[email protected]> wrote:
>
> > getRegionServerInfoPort() calls
> regionServerTracker.getRegionServerInfo(sn)
> > but RegionServerTracker is in hbase-server module :-(
> >
> > On Wed, Jan 21, 2015 at 2:48 PM, Talat Uyarer <[email protected]> wrote:
> >
> > > Is there any extraction for zk connection frpm client side ?
> > >
> > >
> > >
> > > 2015-01-22 0:42 GMT+02:00 Ted Yu <[email protected]>:
> > > > 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 <[email protected]>
> > 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 <[email protected]>:
> > > >> > 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 <[email protected]>
> > > 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
> > >
> >
>

Reply via email to