Title
Create new category
Edit page index title
Edit category
Edit link
Complete Uninstallation of ODP
In this document, we will guide you through the process of uninstalling Ambari, the robust platform for managing big data clusters, and completely uninstalling Acceldata's open-source data platform. Whether you are transitioning to a different solution or simply looking to clean up your environment, our step-by-step instructions will ensure a seamless removal process, allowing you to effectively manage your data infrastructure.
Stop all Services
To stop all services at once, perform the following:
Navigate to your Ambari console.
Click Services from the left navigation menu. A drop-down menu is displayed.
Click Stop All.

If all the services are not stopped successfully, you need to manually kill all the processes on all nodes by using the following command to list and then kill them.
Host Clean-Up with HostCleanup.py
Ambari provides a HostCleanup.py script to automate the removal of packages, users, directories, repositories, processes, and alternatives based on a host-check report. Below is the combined, easy-to-follow usage for ODP uninstallation.
Locate the Host-Check Report
When you perform a host check, the report is saved at the below location.
Navigation: In the Ambari UI, navigate to Hosts → select hosts → Host Actions → Check Host.
This JSON-like file lists all the ODP-related packages and files detected on the host.

Script Usage and Options
Note The script doesn’t just uninstall ODP components—it removes all listed packages and any software that depends on them, including OS-level libraries or utilities. If you only want to clean up the ODP files and leave your system packages intact, add --skip=packages (or --skip=users,packages) to the command.
Example Commands
Cleanup everything except user accounts.
Skip both users and ODP packages along with their dependencies.
Verbose log to a file.
If you have any other additional packages, you need to remove them manually.
Remove log folders on all nodes
To remove all log folders on all nodes, run the following commands:
Remove Hadoop directories including HDFS data on all hosts
To remove Hadoop directories including HDFS data on all hosts, run the following commands:
Remove configuration directories on all nodes
To remove the configuration directories on all nodes, run the following commands:
To delete ODP related repositories, run the following commands:
Remove all library folders on cluster Host
To remove all library folders on cluster Host, run the following commands:
To clear out hue from usr/local , run the following command:
Remove PIDs on all Hosts
To remove PIDs on all hosts, run the following commands:
Remove symlinks on all clusters' hosts (from /usr/bin)
To remove symlinks on all clusters hosts from /user/bin, run the following commands:
Remove symlinks on all clusters' hosts (from /usr/odp/current)
To remove symlinks on all clusters' hosts from /usr/odp/current, run the following commands:
Note If some files or directories are not deleted, you must remove them manually by using the following commands:
To clear out the security conf & keytabs for the ODP components, run the following commands:
To delete users, run the following commands:
Remove Existing Files
To delete more existing files and directories manually, find them and run the following command:
On completion of the above steps, ODP undergoes a thorough uninstallation, and the Hadoop cluster is effectively cleaned up.
Retain Ambari
To retain Ambari and only erase DB and its data, run the following commands:
Set Up Fresh Ambari Database
To set up fresh Ambari database, run the following commands:
Complete Uninstallation of Ambari
Stop and remove the ambari-server (on Ambari host) and ambari-agent (on all nodes), by running the following commands:
Remove log folders on all nodes, by running the following commands:
Remove config folders on all nodes, by running the following commands:
Delete Ambari related repos, by running the following commands:
Remove PIDs on all nodes, by running the following commands:
Remove library folders on all nodes, by running the following commands:
To delete users, run the following command:
Manually find and delete more existing files and directories, by running the following command: