ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Artem Ervits <artemerv...@gmail.com>
Subject delete using API problem
Date Fri, 17 Apr 2015 14:02:02 GMT
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
<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
<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