when programming out of hadoop cluster , if name-node is standby, connecting hdfs and any command fails. http://{0}:{1}/jmx?qry=Hadoop:service=NameNode,name=NameNodeStatus from stackoverflow ( http://stackoverflow.com/questions/26648214/any-command-to-get-active-namenode-for-nameservice-in-hadoop )