ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sumit Mohanty <smoha...@hortonworks.com>
Subject Re: delete using API problem
Date Fri, 17 Apr 2015 14:57:02 GMT
These steps seem fine to me. In fact I just tried and deleted some service in my test cluster
(using latest trunk code base though).


What does GET return

curl -u admin:password -H "X-Requested-By: ambari" -X GET  http://localhost:8080/api/v1/clusters/c1/services/STORM
  ?

________________________________
From: dbist13@gmail.com <dbist13@gmail.com> on behalf of Artem Ervits <artemervits@gmail.com>
Sent: Friday, April 17, 2015 7:02 AM
To: user@ambari.apache.org
Subject: delete using API problem

Hello,

I have an issue where I need to delete Storm service but I may have botched the order of steps.

Here are my commands:

curl -u admin:password -H "X-Requested-By: ambari" -X PUT -d '{"RequestInfo":{"context":"Stop
Service"},"Body":{"ServiceInfo":{"state":"INSTALLED"}}}' http://localhost:8080/api/v1/clusters/c1/services/STORM

curl -u admin:password -H "X-Requested-By: ambari" -X DELETE  http://localhost:8080/api/v1/clusters/c1/services/STORM
                                        {
  "status" : 500,
  "message" : "org.apache.ambari.server.controller.spi.SystemException: An internal system
exception occurred: Cannot remove STORM. Desired state STARTED is not removable.  Service
must be stopped or disabled."

What do I do in this case?

Thanks

Artem Ervits

Mime
View raw message