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
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With