ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Cody <>
Subject Re: REST api question
Date Thu, 27 Feb 2014 00:44:34 GMT
but that¹s to stop the component on a specific hostŠ I want to stop all of
them throughout the clusterŠ.

From:  Sumit Mohanty <>
Reply-To:  <>
Date:  Wed, 26 Feb 2014 16:40:39 -0800
To:  "" <>
Subject:  Re: REST api question

You need to use this API to stop the component. The reason its different is
that stop of the host component is a processed on the host component

curl -u admin:admin -X PUT -d '{"RequestInfo":{"context":"Stop

You can use the wiki to get sample API calls -

On Wed, Feb 26, 2014 at 4:30 PM, Aaron Cody <> wrote:
> we can stop an entire service like so:
> curl --user admin:admin -i -X PUT -d '{"ServiceInfo":{"state":"INSTALLED"}}'
> but how can I stop all instances of a running component? I had hoped with
> something like :
> curl --user admin:admin -i -X PUT -d '{"ServiceInfo":{"state":"INSTALLED"}}'
> but this throws an invalid property exception
> is my URL wrong or are we not allowed to do this sort of thing?

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