How to remove an ambari service after they have been added How to remove an ambari service after they have been added hadoop hadoop

How to remove an ambari service after they have been added


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.


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!