You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@slider.apache.org by Sumit Mohanty <sm...@hortonworks.com> on 2015/04/03 17:21:19 UTC

Fw: Locating services using Ambari APIs

Related to a recent question on the forum.?

________________________________
From: Yusaku Sako <yu...@hortonworks.com>
Sent: Thursday, April 02, 2015 6:41 PM
To: user@ambari.apache.org
Subject: Re: Locating services using Ambari APIs

Hi Umar,

You can make an API call like this:
GET /api/v1/clusters/cluster_name/host_components?HostRoles/component_name=SLIDER_CLIENT

Yusaku

From: Um ar <tr...@gmail.com>>
Reply-To: "user@ambari.apache.org<ma...@ambari.apache.org>" <us...@ambari.apache.org>>
Date: Thursday, April 2, 2015 5:39 PM
To: "user@ambari.apache.org<ma...@ambari.apache.org>" <us...@ambari.apache.org>>
Subject: Locating services using Ambari APIs

Hi,

I am looking for a way to find out which service is running where on my cluster programmatically using Ambari APIs. For example, how to locate where 'Slider Client' is installed so that any slider commands can be redirected to that node.

Thanks,
-Umar