Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove an ambari service after they have been added

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

like image 380
agreen Avatar asked Aug 08 '14 17:08

agreen


2 Answers

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

like image 118
Condla Avatar answered Sep 21 '22 17:09

Condla


In Ambari Web (or via Ambari REST API), you can remove components from a host (or a host entirely). Browse to the Hosts page, click on a host and then next to each component (in the Actions menu) you have a delete option. Note: ambari doesn't run "yum erase" or remove on packages though. It focuses on making sure Ambari does not manage that component any longer, and that the component is not considered part of the cluster. Packages remain on the machines.

like image 24
JeffS Avatar answered Sep 23 '22 17:09

JeffS