How to remove an ambari service after they have been added

agreen picture agreen · Aug 8, 2014 · Viewed 14.6k times · Source

After you add a service to a node, how do you go about removing that service from say one node or all nodes?

For example, I have added pig and now I have decided that I no longer want pig installed on any of my nodes. Do I have to go into each node and manually do a yum remove pig to remove pig from my nodes?

Ambari makes things really easy to add but not so easy to figure out how to remove

Answer

Condla picture Condla · Jul 1, 2015

You can try to delete a host component by using the Ambari REST API as described on this website:

https://cwiki.apache.org/confluence/display/AMBARI/Using+APIs+to+delete+a+service+or+all+host+components+on+a+host