Chapter 29. Uninstalling HDP
Use the following instructions to uninstall HDP:
- Stop all of the installed HDP services. See Stopping HDP Services in the HDP Reference Guide. 
- If Knox is installed, run the following command on all the cluster nodes: - For RHEL/CentOS/Oracle Linux: - yum remove knox*
- For SLES: - zypper remove knox\*
- For Ubuntu/Debian: - sudo apt-get remove knox*
 
- If Ranger is installed, run the following command on all the cluster nodes: - For RHEL/CentOS/Oracle Linux: - yum remove ranger\*
- For SLES: - zypper remove ranger\*
- For Ubuntu/Debian: - sudo apt-get remove ranger\*
 
- If Kafka is installed, run the following command on all the cluster nodes: - For RHEL/CentOS/Oracle Linux: - yum remove kafka\*
- For SLES: - zypper remove kafka\*
- For Ubuntu/Debian: - sudo apt-get remove kafka\*
 
- If Storm is installed, run the following command on all the cluster nodes: - For RHEL/CentOS/Oracle Linux: - yum remove storm\*
- For SLES: - zypper remove storm\*
- For Ubuntu/Debian: - sudo apt-get remove storm\*
 
- If Hive is installed, run the following command on all the cluster nodes: - For RHEL/CentOS/Oracle Linux: - yum remove hive\*
- For SLES: - zypper remove hive\*
- For Ubuntu/Debian: - sudo apt-get remove hive\*
 
- If HBase is installed, run the following command on all the cluster nodes: - For RHEL/CentOS/Oracle Linux: - yum remove hbase\*
- For SLES: - zypper remove hbase\*
- For Ubuntu/Debian: - sudo apt-get remove hbase\*
 
- If Phoenix is installed, run the following command on all the cluster nodes: - For RHEL/CentOS/Oracle Linux: - yum remove phoenix\*
- For SLES: - zypper remove phoenix\*
- For Ubuntu/Debian: - sudo apt-get remove phoenix\*
 
- If Accumulo is installed, run the following command on all the cluster nodes: - For RHEL/CentOS/Oracle Linux: - yum remove accumulo\*
- For SLES: - zypper remove accumulo\*
- For Ubuntu/Debian: - sudo apt-get remove accumulo\*
 
- If Tez is installed, run the following command on all the cluster nodes: - For RHEL/CentOS/Oracle Linux: - yum remove tez\*
- For SLES: - zypper remove tez\*
- For Ubuntu/Debian: - sudo apt-get remove tez\*
 
- If ZooKeeper is installed, run the following command on all the cluster nodes: - For RHEL/CentOS/Oracle Linux: - yum remove zookeeper\*
- For SLES: - zypper remove zookeeper\*
- For Ubuntu/Debian: - sudo apt-get remove zookeeper\*
 
- If Oozie is installed, run the following command on all the cluster nodes: - For RHEL/CentOS/Oracle Linux: - yum remove oozie\*
- For SLES: - zypper remove oozie\*
- For Ubuntu/Debian: - sudo apt-get remove oozie\*
 
- If Pig is installed, run the following command on all the cluster nodes: - For RHEL/CentOS/Oracle Linux: - yum remove pig\*
- For SLES: - zypper remove pig\*
- For Ubuntu/Debian: - sudo apt-get remove pig\*
 
- If compression libraries are installed, run the following command on all the cluster nodes: - yum remove snappy\* yum remove hadooplzo\*
- If Knox is installed, run the following command on all the gateway host: - For RHEL/CentOS/Oracle Linux: - yum remove knox\*
- For SLES: - zypper remove knox\*
- For Ubuntu/Debian: - sudo apt-get remove knox\*
 
- Uninstall Hadoop. run the following command on all the cluster nodes: - yum remove hadoop\*
- Uninstall ExtJS libraries and MySQL connector. Run the following command on all the cluster nodes: - yum remove extjs-2.2-1 mysql-connector-java-5.0.8-1\*

