How to remove an ambari service after they have been added

14,837

Solution 1

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

Solution 2

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.

Solution 3

I struggled through this for longer than a while and then decided to share it here:

The trick is to basically delete all the symlinks pointing back to locations where HDP components reside since that is what causes 80% of the problem. Here is a step by step tutorial for that:

http://www.yourtechchick.com/hadoop/how-to-completely-remove-and-uninstall-hdp-components-hadoop-uninstall-on-linux-system/

Hope that helps!

Share:
14,837
agreen
Author by

agreen

Updated on August 14, 2022

Comments

  • agreen
    agreen over 1 year

    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