Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Ambari REST API + how to capture the active namenode IP from API

Ambari REST API + how to capture the active namenode IP from API

hi all

 

we have HDP version - 2.6.4 

 

with active and standby namenode

 

is it possible to capture the active namenode IP by REST API?

 

 

we try by the following API , but API not return any 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

 

Capture.PNG

 

Michael-Bronson
Don't have an account?
Coming from Hortonworks? Activate your account here