Chapter 16. Uninstalling HDP

Use the following instructions to uninstall HDP:

  1. Stop all the services using the instructions provided here.

  2. If HBase and ZooKeeper are installed, execute the following commands on all the cluster nodes:

    rm -f /usr/share/hbase/lib/zookeeper-$version.jar
    rm -rf $ZOOKEEPER_PID_DIR/*.pid
    rm -rf $HBASE_PID_DIR/*.pid
  3. If HCatalog is installed, execute the following command on all the cluster nodes:

    • For RHEL/CentOS:

      yum remove hcatalog\* 

    • For SLES:

      zypper remove hcatalog\* 

  4. If Hive is installed, execute the following command on all the cluster nodes:

    • For RHEL/CentOS:

      yum remove hive\*

    • For SLES:

      zypper remove hive\*   

  5. If HBase is installed, execute the following command on all the cluster nodes:

    • For RHEL/CentOS:

      yum remove hbase\* 

    • For SLES:

      zypper remove hbase\* 

  6. If ZooKeeper is installed, execute the following command on all the cluster nodes:

    • For RHEL/CentOS:

      yum remove zookeeper\*

    • For SLES:

      zypper remove zookeeper\*

  7. If Oozie is installed, execute the following command on all the cluster nodes:

    • For RHEL/CentOS:

      yum remove oozie\*

    • For SLES:

      zypper remove oozie\*

  8. If Pig is installed, execute the following command on all the cluster nodes:

    • For RHEL/CentOS:

      yum remove pig\*

    • For SLES:

      zypper remove pig\*

  9. If compression libraries are installed, execute the following command on all the cluster nodes:

    • For RHEL/CentOS:

      yum remove snappy\*
      yum remove hadoop-lzo\*
                                      
    • For SLES:

      zypper remove snappy\*
      zypper remove hadoop-lzo\*

  10. Uninstall Hadoop. Execute the following command on all the cluster nodes:

    • For RHEL/CentOS:

      yum remove hadoop\*                      
    • For SLES:

      zypper remove hadoop\*

  11. Uninstall ExtJS libraries and MySQL connector. Execute the following command on all the cluster nodes:

    • For RHEL/CentOS:

      yum remove extjs-2.2-1 mysql-connector-java-5.0.8-1\*                            

    • For SLES:

      zypper remove extjs-2.2-1 mysql-connector-java-5.0.8-1\*

  12. Delete Hadoop directories.

    rm -rf $HADOOP_HOME


loading table of contents...