we have HDP cluster with version 2.6.5 , with ambari platform
in the cluster we have two namenodes , one is active and the second is standby
we want to capture the active namenode IP or active namenode hostname
we try the following API , but without success ( this API not return output )
curl -sH "X-Requested-By: ambari" -u admin:admin -H "X-Requested-By: ambari" -X GET http://master:8080/api/v1/clusters//services/HDFS
note - master machine is the ambari server machine
where I am wrong?