Ambari-cassandra-service the above recommended method:
1 curl-u admin: $PASSWORD-H " Span style= "color: #800000;" >x-requested-by:ambari "-x put-d " {"Requestinfo": {"context": "Stop $SERVICE via REST"}, "Body": {"serviceinfo": {" State ":" Installed "}}} http:// $AMBARI _host:8080/api/v1/clusters/$CLUSTER/services/$SERVICE 2 curl-u admin: $PASSWORD-i-H " "-x DELETE http:/ / $AMBARI _host:8080/api/v1/clusters/$CLUSTER/services/$SERVICE
But I sometimes can not stop the service, will be reported not support or the like. If you cannot stop the service, you can go to the Ambari interface, first stop, and then delete.
Finally, use the following basic to stop the service and delete:
" X-requested-by:ambari " -u admin:admin-X PUT'{" Requestinfo ": {" context ":" Stop Service "}," Body ": {" ServiceInfo ": {" state ":" Installed "}}}' http://192.168.0.33:8080/api/ V1/clusters/docker/services/docker"x-requested-by:ambari" -X DELETE http://192.168.0.33:8080/api/v1/clusters/docker/services/docker
Ambari Delete Service