get Hadoop metric with jmx

JMX is widely used in Java world to stream metrics and KPIs.

In Hadoop, the most used JMX is on the NameNode :

http://NAMENODE_FQDN:50070/jmx

This provides an overview of all the things accessible through JMX :

JMX Hadoop metrics JMX Overview

You can have a list of all metrics provided by JMX :

http://sandbox.hortonworks.com:50070/jmx?qry=Hadoop:*

JMX Hadoop metrics

And you can finally (which is very useful if you’re looking at something very specific) get a specific metric when specifying the bean name and the attribute :

http://NAMENODE_FQDN:50070/jmx?get=MXBeanName::AttributeName

For example, if we want to get the CapacityUsed found here :

JMX find metric

Then we’ll call JMX with MXBeanName = Hadoop:service=NameNode,name=FSNamesystemState and AttributeName set to CapacityUsed

So we call http://sandbox.hortonworks.com:50070/jmx?get=Hadoop:service=NameNode,name=FSNamesystemState::CapacityUsed

JMX CapacityUsed


So, what do you think ?

  • Time limit is exhausted. Please reload CAPTCHA.