Created on 03-28-201711:13 PM - edited 09-16-202201:39 AM
NOTE: This is for information and testing purposes only. Pleaes exercise caution prior to using it on business critical environments.
STEPS:
To completely remove HDP stack from the Operating System, do the following:
1. Stop all the services in Ambari UI.
2. Shutdown ambari-server and ambari-agent on Ambari server host using the following commands:
$ ambari-server stop
$ ambari-agent stop
3. Shutdown ambari-agent on all other nodes using the following commands:
$ ambari-agent stop
4. Run the following command to check the installed services to delete the related configs and directories:
$ hdp-select | grep -v 'None'
5. Follow this URLto uninstall each services that is installed as per the above step or from the Ambari UI.
6. Remove all the files and directory related with Hadoop and HDP using the following commands. This step will delete all the files and directories name with hadoop under root partition. Please be extra caution to run this step and make sure you have nothing important in these directories.