Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Is there a way to remove the services from ambari and add the services once again?

avatar
 
1 ACCEPTED SOLUTION

avatar

13899-amba.png

This are the things i could find in service actions tab

View solution in original post

10 REPLIES 10

avatar

Please use the below API to delete the service from Ambari-2.2.1.0. Below example shows how to delete KNOX service, similarly you can modify its values to reflect your need.

curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE http://<AMBARi_SERVER_HOST>:8080/api/v1/clusters/<$CLUSTER_NAME>/services/KNOX

To add the service you can refer to this documentation.