incubator-ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sumit Mohanty <>
Subject Re: Simplest way to delete cluster via API?
Date Tue, 03 Sep 2013 23:01:15 GMT
What version of Ambari are you using?

Using version, you can use the following to delete the cluster.

curl ­u username:password ­X DELETE http://<ambari
<http://localhost:8080/api/v1/clusters/<cluster>  name>

If you are trying get your host(s) to a clean state and reinstall Ambari
Ambari+and+Stack provides some guideline around cleaning up the host(s).

From:  Christian Smith <>
Reply-To:  <>
Date:  Tuesday, September 3, 2013 2:04 PM
To:  "" <>
Subject:  Simplest way to delete cluster via API?


I'm trying to delete a configured cluster with all services and components
via the API with no success.

I keep getting errors like:

org.apache.ambari.server.AmbariException: Invalid transition for service,
clusterName=hadoop1, clusterId=2, serviceName=HDFS,
currentDesiredState=INSTALLED, newDesiredState=UNINSTALLED

I have two questions,

1) What's the simplest option to delete a cluster and all its config (e.g.
-force option) via the API?  I just want the config removed from Ambari as I
will be destroying the cluster VMs.

2) What are the steps to gracefully delete a cluster and all
services/components via the API?


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