Yes, correct.  I had to stop all services first.

On Wed, Sep 4, 2013 at 11:18 AM, Sumit Mohanty <[email protected]>wrote:

> We do not have an option to force delete a cluster. Just so that I
> understand – did you mean when all services become 'INSTALLED' from
> 'STARTED' (that is after all services have stopped).
>
> -Sumit
>
> From: Christian Smith <[email protected]>
> Reply-To: <[email protected]>
> Date: Tuesday, September 3, 2013 4:04 PM
> To: "[email protected]" <[email protected]>
> Subject: Re: Simplest way to delete cluster via API?
>
> Hi Sumit,
>
> I'm using 1.2.4...  I noticed that if I wait for all services to become
> 'INSTALLED' then I can delete the cluster.
>
> Do you know if there's a way to avoid this step and forcibly delete the
> cluster?  Or do I need to update?
>
> Cheers,
> Christian
>
>
> On Wed, Sep 4, 2013 at 11:01 AM, Sumit Mohanty 
> <[email protected]>wrote:
>
>> What version of Ambari are you using?
>>
>> Using version 1.2.5.17, you can use the following to delete the cluster.
>>
>> curl –u username:password –X DELETE http://<ambari
>> server>:8080/api/v1/clusters/<cluster<http://localhost:8080/api/v1/clusters/%3Ccluster>
>>  name>
>>
>> If you are trying get your host(s) to a clean state and reinstall Ambari
>> then
>> https://cwiki.apache.org/confluence/display/AMBARI/Cleaning+up+machines+for+Ambari+and+Stack
>>  provides
>> some guideline around cleaning up the host(s).
>>
>> -Sumit
>> From: Christian Smith <[email protected]>
>> Reply-To: <[email protected]>
>> Date: Tuesday, September 3, 2013 2:04 PM
>> To: "[email protected]" <[email protected]>
>> Subject: Simplest way to delete cluster via API?
>>
>> Hi,
>>
>> 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?
>>
>> Thanks,
>> Christian
>>
>> CONFIDENTIALITY NOTICE
>> 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.
>
>
>
> CONFIDENTIALITY NOTICE
> 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.
>

Reply via email to