Use the following instructions to uninstall HDP:
Stop all the installed HDP services.
If HCatalog is installed, execute the following command on all the cluster nodes:
For RHEL/CentOS/Oracle Linux:
yum remove hcatalog\*
SLES:
zypper remove hcatalog\*
Ubuntu:
sudo apt-get remove hcatalog\*
If Hive is installed, execute the following command on all the cluster nodes:
For RHEL/CentOS/Oracle Linux:
yum remove hive\*
SLES:
zypper remove hive\*
Ubuntu:
sudo apt-get remove hive\*
If HBase is installed, execute the following command on all the cluster nodes:
For RHEL/CentOS/Oracle Linux:
yum remove hbase\*
SLES:
zypper remove hbase\*
Ubuntu:
sudo apt-get remove hbase\*
If ZooKeeper is installed, execute the following command on all the cluster nodes:
For RHEL/CentOS/Oracle Linux:
yum remove zookeeper\*
SLES:
zypper remove zookeeper\*
Ubuntu:
sudo apt-get remove zookeeper\*
If Oozie is installed, execute the following command on all the cluster nodes:
For RHEL/CentOS/Oracle Linux:
yum remove oozie\*
SLES:
zypper remove oozie\*
Ubuntu:
sudo apt-get remove oozie\*
If Pig is installed, execute the following command on all the cluster nodes:
For RHEL/CentOS/Oracle Linux:
yum remove pig\*
SLES:
zypper remove pig\*
Ubuntu:
sudo apt-get remove pig\*
If compression libraries are installed, execute the following command on all the cluster nodes:
yum remove snappy\* yum remove hadoop-lzo\*
Uninstall Hadoop. Execute the following command on all the cluster nodes:
yum remove hadoop\*
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\*