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:
yum remove hcatalog\*
If Hive is installed, execute the following command on all the cluster nodes:
yum remove hive\*
If Tez is installed, execute the following command on all the cluster nodes:
yum remove tez
If HBase is installed, execute the following command on all the cluster nodes:
yum remove hbase\*
If ZooKeeper is installed, execute the following command on all the cluster nodes:
yum remove zookeeper\*
If Pig is installed, execute the following command on all the cluster nodes:
yum 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\*
Delete Hadoop directories. If your Hadoop Home directory is "/usr/lib/hadoop" for example, delete that directory and its subdirectories.
rm -rf /usr/lib/hadoop