ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bhuvnesh Chaudhary <>
Subject Re: simple ambari service startup script?
Date Mon, 16 Nov 2015 21:21:12 GMT
You may directly call the API to start and stop all the services which will
take care of starting them in the required order instead of doing them one
by one if that achieves what you are looking for.

For example: To stop,
Hit the URL of the form:
url = "http://" + <ambari-server-address> + ":8080/api/v1/clusters/" +
<ambari-cluster-name> + "/services?"

Have the payload as below.
        data = {
                "context":"Stop all

For start just change the state to "STARTED"

Bhuvnesh Chaudhary
Email: bchau <>
Desk: +1-650-846-1696 | Mobile: +1-973-906-6976

On Mon, Nov 16, 2015 at 1:06 PM, James Tanner <> wrote:

> Has anyone written and can share a bash/python script that will start and
> stop -all- ambari managed services in the right order?
> I'm trying to build images that will start services on boot and kill them
> on shutdown, so I need something suitable for sysvinit+systemd.

View raw message