ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yusaku Sako <>
Subject Re: Access Ambari API through Service Install Script
Date Wed, 26 Nov 2014 00:46:27 GMT
Can someone help?


On Sat, Nov 22, 2014 at 4:48 PM, Brian de la Motte <>

> Hi everyone,
> I'm trying to integrate a custom service into Ambari. The problem is the
> service's master during installation needs to know about the hosts that are
> to be the service's slaves. The only way I was able to find that info was
> by using the API.
> Is it a good idea to have the master's install script call the API to get
> that info or is there an easier way? I think it would work but the script
> would need to know the username and password for Ambari's API call.
> Is there a way to get the service's slave's hosts without the API or for a
> Python script to get the admin username and password from a config in order
> to call the API?
> The call I would possibly use is something like this:
> curl  --user admin:admin
> I could parse out the hostnames from this but how do I make this call
> without knowing what username and password to use.
> Any ideas or alternative methods?
> Thank you!
> Brian

NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

View raw message