- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Ambari API call to retrieve hostname of active HBase master?
- Labels:
-
Apache Ambari
Created ‎03-24-2017 10:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using Ambari apis, is there a way to get the host name of the Active HBase Master?
Created ‎03-24-2017 10:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Romil Choksi You can use additional queries in the GET HostComponents API
e.g
<AMBARI_HOST>/api/v1/clusters/cl1/host_components?HostRoles/component_name=HBASE_MASTER&metrics/hbase/master/IsActiveMaster=true Hope this helps!
Created ‎03-24-2017 10:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Romil Choksi You can use additional queries in the GET HostComponents API
e.g
<AMBARI_HOST>/api/v1/clusters/cl1/host_components?HostRoles/component_name=HBASE_MASTER&metrics/hbase/master/IsActiveMaster=true Hope this helps!
Created ‎03-24-2017 11:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@kramakrishnan thanks. This helps.
Created ‎03-24-2017 11:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can prepare similar queries by identifying the fields defined using query parameter ?fields=* with most of the ambari APIs
e.g <AMBARI_HOST>/api/v1/clusters/cl1/host_components?fields=*
