Ambari Deleting a service

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.