Chapter 14. 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:

    yum remove hcatalog\* 

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

    yum remove hive\* 

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

    yum remove tez

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

    yum remove hbase\* 

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

    yum remove zookeeper\* 

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

    yum remove oozie\* 

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

    yum remove pig\* 

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

    yum remove snappy\*
    yum remove hadoop-lzo\*
    

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

    yum remove hadoop\* 

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

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

  13. Delete Hadoop directories.

    rm -rf $HADOOP_HOME


loading table of contents...