Hi Manuel,

If its to delete the cluster and reset the ambari , you can use *ambari-server
reset* command. But remember this will Reset the Database and your cluster
details/Stored Configs related to Hadoop/Service information all will be
lost .

Take DB Backup if required

Refer to Documentation :
https://cwiki.apache.org/confluence/display/AMBARI/Host+Cleanup+for+Ambari+and+Stack


*Thanks,Akhil Subhash Naik* |
------------------------------


On Thu, Feb 27, 2020 at 10:50 AM Manuel Sopena Ballesteros <
[email protected]> wrote:

> Dear Ambari community,
>
>
>
> I am trying to delete a cluster in ambary, could not find any
> documentation so I tried using the rest api:
>
>
>
> # curl –u xxxx:xxxx -H "X-Requested-By: ambari"  -X DELETE
> http://xxx.xxx.xxx.xxx:8080/api/v1/clusters/Grandline
>
> {
>
>   "status" : 404,
>
>   "message" :
> "org.apache.ambari.server.controller.spi.NoSuchResourceException: The
> specified resource doesn't exist: Cluster not found, clusterId=2"
>
> }
>
>
>
> Any advice about how could I delete cluster in ambari?
>
>
>
> Thank you
> NOTICE
> Please consider the environment before printing this email. This message
> and any attachments are intended for the addressee named and may contain
> legally privileged/confidential/copyright information. If you are not the
> intended recipient, you should not read, use, disclose, copy or distribute
> this communication. If you have received this message in error please
> notify us at once by return email and then delete both messages. We accept
> no liability for the distribution of viruses or similar in electronic
> communications. This notice should not be removed.
>

Reply via email to