Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Hadoop NameNode JMX REST Query for NameNodeStatus
> curl ',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