Quantcast
Channel: Hortonworks » All Replies
Viewing all articles
Browse latest Browse all 3435

Reply To: Ambari API call to determine namenode master in HA

$
0
0

Hi Scott,

You can make the following call to determine which NameNode is active / standby:

 
<p class=”p1″><span class=”s1″>/api/v1/clusters/cluster_name/services/HDFS/components/NAMENODE?fields=host_components/metrics/dfs/FSNamesystem/HAState</span></p>
<p class=”p1″>This will either show “active” or “standby”.</p>
<p class=”p1″>I hope this helps.</p>


Viewing all articles
Browse latest Browse all 3435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>