hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashish Singhi <ashish.singhi.apa...@gmail.com>
Subject Re: How to retrieve master metrics from JMX client
Date Fri, 24 Apr 2015 17:29:36 GMT
Yes, HBASE-10289

-- Ashish Singhi

On Fri, Apr 24, 2015 at 10:54 PM, Stack <stack@duboce.net> wrote:

> Does git blame take you to an issue with any reasoning as to why master jmx
> is turned off Ashish?
> St.Ack
>
> On Fri, Apr 24, 2015 at 9:47 AM, Ashish Singhi <ashish.89.singhi@gmail.com
> >
> wrote:
>
> > Hi devs.
> >
> > I see that in all other code branches other than 0.98 we do not load
> > JMXListener for masters.
> > Here is the below code snippet from JMXListener class.
> >
> > {code}
> >     if (env instanceof MasterCoprocessorEnvironment) {
> >       LOG.error("JMXListener should not be loaded in Master
> Environment!");
> >     } else if (env instanceof RegionServerCoprocessorEnvironment) {
> >       // running on RegionServer --since 0.99 HMaster is also a
> > HRegionServer
> >       rmiRegistryPort =
> >         conf.getInt("regionserver" + RMI_REGISTRY_PORT_CONF_KEY,
> > defRMIRegistryPort);
> >       rmiConnectorPort =
> >         conf.getInt("regionserver" + RMI_CONNECTOR_PORT_CONF_KEY,
> > rmiRegistryPort);
> >       LOG.info("RegionServer rmiRegistryPort:" + rmiRegistryPort
> >         + ",RegionServer rmiConnectorPort:" + rmiConnectorPort);
> >
> >     } else if (env instanceof RegionCoprocessorEnvironment) {
> >       LOG.error("JMXListener should not be loaded in Region
> Environment!");
> >     }
> > {code}
> >
> > How can one retrieve master metrics from JMX client ? As we have a
> > system like OM(operation management) which monitors master metrics
> > using JMX client. We used to retrieve these metrics successfully from
> > 0.98 code branch as there JMListener is loaded in both Master and
> > RegionServer environments.
> >
> > --
> > Ashish Singhi
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message