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: [email protected] <[email protected]> on behalf of Artem Ervits <[email protected]> Sent: Friday, April 17, 2015 7:02 AM To: [email protected] 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
