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:

  1. Navigate to your Ambari console.
  2. Click Services from the left navigation menu. A drop-down menu is displayed.
  3. 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.

Bash
Copy

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 ActionsCheck Host.

Bash
Copy

This JSON-like file lists all the ODP-related packages and files detected on the host.

Script Usage and Options

Bash
Copy

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

  1. Cleanup everything except user accounts.
Bash
Copy
  1. Skip both users and ODP packages along with their dependencies.
Bash
Copy
  1. Verbose log to a file.
Bash
Copy

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:

Bash
Copy

Remove Hadoop directories including HDFS data on all hosts

To remove Hadoop directories including HDFS data on all hosts, run the following commands:

Bash
Copy

Remove configuration directories on all nodes

To remove the configuration directories on all nodes, run the following commands:

Bash
Copy

To delete ODP related repositories, run the following commands:

Bash
Copy

Remove all library folders on cluster Host

To remove all library folders on cluster Host, run the following commands:

Bash
Copy

To clear out hue from usr/local , run the following command:

Bash
Copy

Remove PIDs on all Hosts

To remove PIDs on all hosts, run the following commands:

Bash
Copy

To remove symlinks on all clusters hosts from /user/bin, run the following commands:

Bash
Copy

To remove symlinks on all clusters' hosts from /usr/odp/current, run the following commands:

Bash
Copy

Note If some files or directories are not deleted, you must remove them manually by using the following commands:

Bash
Copy

To clear out the security conf & keytabs for the ODP components, run the following commands:

Bash
Copy

To delete users, run the following commands:

Bash
Copy

Remove Existing Files

To delete more existing files and directories manually, find them and run the following command:

Bash
Copy

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:

Bash
Copy

Set Up Fresh Ambari Database

To set up fresh Ambari database, run the following commands:

Bash
Copy

Complete Uninstallation of Ambari

  1. Stop and remove the ambari-server (on Ambari host) and ambari-agent (on all nodes), by running the following commands:
Bash
Copy
  1. Remove log folders on all nodes, by running the following commands:
Bash
Copy
  1. Remove config folders on all nodes, by running the following commands:
Bash
Copy

Delete Ambari related repos, by running the following commands:

Bash
Copy
  1. Remove PIDs on all nodes, by running the following commands:
Bash
Copy
  1. Remove library folders on all nodes, by running the following commands:
Bash
Copy

To delete users, run the following command:

Bash
Copy
  1. Manually find and delete more existing files and directories, by running the following command:
Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated