-
-
Save gsantovena/5b601c921d1d5f35568f5ef9e642774c to your computer and use it in GitHub Desktop.
Hadoop NameNode JMX REST Query for NameNodeStatus
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > curl 'http://172.20.11.177:50070/jmx?qry=Hadoop:service=NameNode,name=NameNodeStatus' | |
| { | |
| "beans" : [ { | |
| "name" : "Hadoop:service=NameNode,name=NameNodeStatus", | |
| "modelerType" : "org.apache.hadoop.hdfs.server.namenode.NameNode", | |
| "State" : "active", | |
| "NNRole" : "NameNode", | |
| "HostAndPort" : "localhost:19000", | |
| "SecurityEnabled" : false, | |
| "LastHATransitionTime" : 0 | |
| } ] | |
| # "State" is "initializing", "active", "standby" or "stopping". | |
| # "LastHATransitionTime" is the last time of the last flip from standby to active (or vice versa) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment