Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 03-24-2017 10:55 PM
Using Ambari apis, is there a way to get the host name of the Active HBase Master?
Created 03-24-2017 10:59 PM
@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
@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
@kramakrishnan thanks. This helps.
Created 03-24-2017 11:09 PM
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=*