Use the following instructions to uninstall HDP:
Stop all the services using the instructions provided here.
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
If HCatalog is installed, execute the following command on all the cluster nodes:
For RHEL/CentOS:
yum remove hcatalog\*
For SLES:
zypper remove hcatalog\*
If Hive is installed, execute the following command on all the cluster nodes:
For RHEL/CentOS:
yum remove hive\*
For SLES:
zypper remove hive\*
If HBase is installed, execute the following command on all the cluster nodes:
For RHEL/CentOS:
yum remove hbase\*
For SLES:
zypper remove hbase\*
If ZooKeeper is installed, execute the following command on all the cluster nodes:
For RHEL/CentOS:
yum remove zookeeper\*
For SLES:
zypper remove zookeeper\*
If Oozie is installed, execute the following command on all the cluster nodes:
For RHEL/CentOS:
yum remove oozie\*
For SLES:
zypper remove oozie\*
If Pig is installed, execute the following command on all the cluster nodes:
For RHEL/CentOS:
yum remove pig\*
For SLES:
zypper remove pig\*
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\*
Uninstall Hadoop. Execute the following command on all the cluster nodes:
For RHEL/CentOS:
yum remove hadoop\*
For SLES:
zypper remove hadoop\*
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\*
Delete Hadoop directories.
rm -rf $HADOOP_HOME