This is the documentation for Cloudera Manager 4.8.2.
Documentation for other versions is available at Cloudera Documentation.

Uninstalling Cloudera Manager and CDH

If necessary, you can use the following instructions to uninstall the Cloudera Manager Server, databases, and Agents, and CDH software and data.

If you have come to this procedure because your installation did not complete (for example, if it was interrupted by a virtual machine timeout), and you want to proceed with the installation, do the following:

  1. Remove files and directories:
    $ sudo rm -Rf /usr/share/cmf /var/lib/cloudera* /var/cache/yum/cloudera*
  2. Run the installer again.
Otherwise, to completely uninstall Cloudera Manager and CDH software and data, follow these steps:
  1. Uninstalling Cloudera Manager and CDH Software
  2. Removing Cloudera Manager and CDH Data
  Note: The second step removes all CDH user data. To preserve the data, copy it to another cluster using the distcp command before starting the uninstall process.

Uninstalling Cloudera Manager and CDH Software

Step 1: Stop all services.

  Note: As necessary, repeat the process of stopping services for each cluster.
  1. Do one of the following:
      1. On the Home page, click to the right of the cluster name and select Stop.
      1. Choose All Services from the Clusters tab.
      2. From the Actions menu at the far right of the cluster name, choose Stop.
  2. Click Stop in the confirmation screen.

    The Command Details window shows the progress of stopping services.

    When All services successfully stopped appears, the task is complete and you may close the Command Details window.

  3. On the Home page, click to the right of the Cloudera Management Service entry and select Stop.

    The Command Details window shows the progress of stopping services.

    When All services successfully stopped appears, the task is complete and you may close the Command Details window.

Step 2: Deactivate and remove parcels, if used for CDH installation.

  Note: If you installed using packages, you can skip this step. Go to Step 3: Uninstall the Cloudera Manager Server. You will remove CDH packages in Step 4: On all Agent hosts, uninstall Cloudera Manager Agent and CDH software.

If you installed CDH using parcels, you should remove them from the Parcels page in the Cloudera Manager Admin Console.

  1. Click the parcel indicator in the top navigation bar. This takes you to the Administration page, Parcels tab. By default, any parcels available for download or distribution are shown, as well as the activated parcel.
  2. Click the arrow on the Actions button and select Deactivate.

    When this action has completed, the parcel button will change to say Activate.

  3. Click the arrow on the Activate button and select Remove from Hosts.

    When this action has completed, the parcel button will change to say Distribute.

  4. Click the arrow on the Distribute button and select Delete. This will remove the parcel from the local parcel repository.

Note that there can only be one active parcel; however, there may be multiple parcels that have been downloaded and distributed, but that are not active. If this is the case, you should also remove those parcels from any hosts onto which they have been distributed, and delete the parcels from the local repository.

Step 3: Uninstall the Cloudera Manager Server.

The commands for uninstalling the Cloudera Manager Server depend on the method you used to install the Cloudera Manager Server. Refer to section below that corresponds to the method you used to install the Cloudera Manager Server. This process described below also removes the embedded PostgreSQL database software, if you installed that option. If you did not use the embedded PostgreSQL database, omit the cloudera-manager-server-db steps.

If you used the cloudera-manager-installer.bin file:

If you installed the Cloudera Manager Server using cloudera-manager-installer.bin, run the following command on the Cloudera Manager Server host:

$ sudo /usr/share/cmf/uninstall-cloudera-manager.sh
  Note: If the uninstall-cloudera-manager.sh is not installed on your cluster, use the following instructions to uninstall the Cloudera Manager Server.

If you did not use the cloudera-manager-installer.bin file:

If you installed the Cloudera Manager Server using a different installation method such as Puppet, run the following commands on the Cloudera Manager Server host.

  1. Stop the Cloudera Manager Server and its database:
    sudo service cloudera-scm-server stop
    sudo service cloudera-scm-server-db stop
  2. Uninstall the Cloudera Manager Server and its database:

    On Red Hat systems:

    sudo yum remove cloudera-manager-server
    sudo yum remove cloudera-manager-server-db

    On SLES systems:

    sudo zypper -n rm --force-resolution cloudera-manager-server
    sudo zypper -n rm --force-resolution cloudera-manager-server-db

    On Debian/Ubuntu systems:

    sudo apt-get remove cloudera-manager-server
    sudo apt-get remove cloudera-manager-server-db

Step 4: On all Agent hosts, uninstall Cloudera Manager Agent and CDH software.

On all Agent hosts, run the following commands as root to uninstall the Cloudera Manager Agent and CDH on your cluster machines.

  1. Stop the Cloudera Manager agent.

    On Red Hat/SLES systems:

    $ sudo service cloudera-scm-agent hard_stop

    On Debian/Ubuntu systems:

    $ sudo /usr/sbin/service cloudera-scm-agent hard_stop
  2. Uninstall software:
    OS Parcel Install Package Install

    On Red Hat systems:

    $ sudo yum remove 'cloudera-manager-*'
    CDH 4 -
    $ sudo yum remove 'cloudera-manager-*' hadoop hue-common 'bigtop-*' sqoop2-client
    CDH 3 -
    $ sudo yum remove 'cloudera-manager-*' hadoop-0.20 hue-common hadoop-pig oozie-client hive hadoop-hbase hadoop-zookeeper bigtop-utils

    On SLES systems:

    $ sudo zypper remove 'cloudera-manager-*'
    CDH 4 -
    $ sudo zypper remove 'cloudera-manager-*' hadoop hue-common 'bigtop-*' sqoop2-client
    CDH 3 -
    $ sudo zypper remove  'cloudera-manager-*' hadoop-0.20 hue-common hadoop-pig oozie-client hive hadoop-hbase hadoop-zookeeper bigtop-utils 

    On Debian/Ubuntu systems:

    $ sudo apt-get purge 'cloudera-manager-*'
    CDH 4 -
    $ sudo apt-get purge 'cloudera-manager-*' hadoop hue-common 'bigtop-*' sqoop2-client
    CDH 3 -
    $ sudo apt-get purge 'cloudera-manager-*' hadoop-0.20 hue-common hadoop-pig oozie-client hive hadoop-hbase hadoop-zookeeper bigtop-utils
  3. Run this command:

    On Red Hat systems:

    $ sudo yum clean all 

    On SLES systems:

    $ sudo zypper clean 

    On Debian/Ubuntu systems:

    $ sudo apt-get clean 

Removing Cloudera Manager and CDH Data

Step 1: On all Agent hosts, remove Cloudera Manager data.

This step permanently removes Cloudera Manager data. If you want to be able to access any of this data in the future, you must back it up before removing it. If you used an embedded PostgreSQL database, that data is stored in /var/lib/cloudera-scm-server-db. To permanently remove all Cloudera Manager data, run the following command as root:

$ sudo rm -Rf /usr/share/cmf /var/lib/cloudera* /var/cache/yum/cloudera* /var/log/cloudera* /var/run/cloudera*

Step 2: On all Agent hosts, remove CDH data.

$ sudo rm -Rf /var/lib/flume-ng /var/lib/hadoop* /var/lib/hue /var/lib/oozie /var/lib/solr /var/lib/sqoop*
$ sudo rm -Rf /dfs /mapred /yarn
  Note: For additional information about uninstalling CDH, including clean-up of CDH files, see the entry on Uninstalling CDH Components in the CDH4 Installation Guide.

Step 3: On all Agent hosts, kill any running Cloudera Manager and CDH processes.

On all Agent hosts, kill any running Cloudera Manager and Hadoop processes:

$ for u in hdfs mapred cloudera-scm hbase hue zookeeper oozie hive impala flume; do sudo kill $(ps -u $u -o pid=); done
  Note: This step should not be necessary if you stopped all the services and the Cloudera Manager agent correctly.

Step 4: Remove the Cloudera Manager lock file.

On all Agent hosts, run this command to remove the Cloudera Manager lock file:

$ sudo rm /tmp/.scm_prepare_node.lock

Step 5: Stop and remove external databases.

If you chose to store Cloudera Manager or CDH data in an external database, see the database vendor documentation for details on how to remove the databases.