title: How to get active namenode hostname from Cloudera Manager REST API?
body: <p>I'm able to access the Cloudera manager rest API.</p>
  
  <pre><code>curl -u username:password http://cmhost:port/api/v10/clusters/clusterName
  </code></pre>
  
  <p>How to find the active <strong>namenode</strong> and resource mangarer hostname?</p>
  
  <p>I couldn't find anything relevant from API docs.</p>
  
  <p><a href="http://cloudera.github.io/cm_api/apidocs/v10/index.html" rel="nofollow noreferrer">http://cloudera.github.io/cm_api/apidocs/v10/index.html</a></p>
  
  <p>Note: Cluster is configured with high availability</p>