I think you'll need to get the status info from the active master... which means going to ZK to find the active master. I guess you could also iterate the RS's in ZK directly, but this may be fragile as we don't consider ZK structure as part of our API compatibility guidelines. Can you use the shell's `status` command to get this info? I guess we don't guarantee compatibility on the output it produces either, but at least it does all the poking around on your behalf.
Ted has been into this part of the code recently as part of his work on Apache Slider. Maybe he has some ideas for you. -n 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 >
