http://blog.csdn.net/wulantian/article/details/42706777
CDH5. x Full Uninstall Step # by coco# 2015-01-14
1. Close all services in the cluster.
This can be done by Clouder Manger home page to close the cluster. 2. Uninstall [[email protected] ~]#/usr/share/cmf/uninstall-cloudera-manager.sh Note: If uninstall-cloudera-manager.sh is not installed in the cluster, uninstall it using the following command:
a, stop Cloudera Manager server and its database &N Bsp B. Uninstall Cloudera Manager Server and its database sudo yum remove Cloudera-manager-serversudo yum remove cloudera-manager-server-db [[email protected] ~]# service cloudera-scm-agent stop[[email protected] ~]# service Cloudera-scm-agent stop . All the clusters to be unloaded are cleared: [[email protected] ~]# umount/var/run/cloudera-scm-agent/ Process[[email protected] ~]# umount/var/run/cloudera-scm-agent/process[[email protected] ~]# Umount/var /run/cloudera-scm-agent/process [[email protected] ~]# rm-rf/usr/share/cmf/var/lib/cloudera*/var/cache /yum/x86_64/6/cloudera*/var/log/cloudera*/var/run/cloudera* /etc/cloudera* 3. Uninstalling the installation package: [[email protected] ~]# Rpm-qa | grep cloudera[[email protected] ~]# for f in ' Rpm-qa | grep Cloudera ' ; Do Rpm-e ${f}; Done (if there is a save, do it again) 4. Clear the installation files rm-rf/var/lib/hadoop-*/var/lib/impala/var/lib/solr/var/lib/zookeeper /var/lib/hue/var/lib/oozie /var/lib/pgsql / VAR/LIB/SQOOP2 /data/dfs/ /data/impala//data/yarn/ /dfs//impala//yarn/ /var/run/hadoop-*// var/run/hdfs-*/ /usr/bin/hadoop*/usr/bin/zookeeper*/usr/bin/hbase*/usr/bin/hive*/usr/bin/hdfs/usr/bin/ mapred/usr/bin/yarn/usr/bin/sqoop*/usr/bin/oozie /etc/hadoop*/etc/zookeeper*/etc/hive*/etc/hue/etc/impala /etc/sqoop*/etc/oozie/etc/hbase*/etc/hcatalog //only remove the Hadoop series, do not remove other software, otherwise the version control of other software will be destroyed [[email Protected] alternatives]# RM-RF ' find/var/lib/alternatives/*! -name "MTA"! -name "Print"! -name "Zlibrary-ui" -mtime-3 ' [[email protected] alternatives]# rm-rf/etc/alternatives/* 5. Kill related processes: for u in HDFs mapred cloudera-scm hbase hue zookeeper Oozie Hive Impala Flume; Do sudo kill $ (ps-u $u-o pid=); Done 6. Delete Parcel package distribution files and decompression files Rm-rf/opt/cloudera/parcel-cache/opt/cloudera/parcels to this uninstall is complete.
Reprint: cdh5.x Full Uninstall Step