天天看点

cloudera manager 5.3完整卸载脚本

service cloudera-scm-agent stop

umount /var/run/cloudera-scm-agent/process

rm -rf /usr/share/cmf /var/lib/cloudera* /var/cache/yum/x86_64/6/cloudera* /var/log/cloudera* /var/run/cloudera*  /etc/cloudera*

rpm -qa | grep cloudera

for f in `rpm -qa | grep cloudera `  ; do rpm -e ${f} ; done

for f in `rpm -qa | grep oracle-j2sdk1.7 `  ; do rpm -e ${f} ; done

for f in `rpm -qa | grep enterprise-debuginfo `  ; do rpm -e ${f} ; done

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

rm -rf ` find /var/lib/alternatives/* ! -name "mta" ! -name "print" ! -name "zlibrary-ui"  -mtime -3`

rm -rf /etc/alternatives/*

for u in hdfs mapred cloudera-scm hbase hue zookeeper oozie hive impala flume; do sudo kill $(ps -u $u -o pid=); done

rm -rf /opt/cloudera/parcel-cache /opt/cloudera/parcels

上一篇: 代码