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: - 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 Oozie is installed, execute the following command on all the cluster nodes: - yum remove oozie\* 
- 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. - rm -rf $HADOOP_HOME 


