阅读背景:

Cloudera Manager卸载笔记

来源:互联网 

1、通过管理平台分别停止组件服务和Cloudera Management Service

2、通过管理平台注销并移除Parcles (在控制台注销并移除,无论是安装的Parcles还是未安装的Parcles)

3、停止后台服务

  sudo service cloudera-scm-agent stop

      sudo service cloudera-scm-server stop    

  sudo service cloudera-scm-server-db stop

      sudo service mysqld stop

4、卸载Cloudera Manager Server

    执行命令:sudo /usr/share/cmf/uninstall-cloudera-manager.sh

5、清理配置和缓存信息

     在所有agent上执行:sudo umount -v /var/run/cloudera-scm-agent/process

     在所有主机上执行:sudo rm -rf /usr/share/cmf;

                              sudo rm -rf /var/lib/cloudera*;

            sudo rm -rf  /var/cache/yum/x86_64/6/cloudera*;

            sudo rm -rf  /var/log/cloudera*;

            sudo rm -rf  /var/run/cloudera*  /etc/cloudera* 

6、卸载rpm安装包

  1)查看 rpm -qa | grep cloudera

    2)卸载 for f in `rpm -qa | grep cloudera `  ; do sudo rpm -e ${f} ; done

7、清理安装文件

  sudo 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 

     略过其它软件,只删除hadoop相关

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

8、如果有hadoop先关进程还在,则杀死

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

9、清理parcel

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

10、清理组件用户

     sudo userdel hue;sudo userdel impala;sudo userdel spark;sudo userdel sentry;sudo userdel sqoop2;sudo userdel hbase;sudo userdel oozie;sudo userdel yarn;sudo userdel mapred;sudo userdel zookeeper;sudo userdel httpfs;sudo userdel solr;sudo userdel kms;sudo userdel hive;sudo userdel flume;sudo userdel hdfs;sudo userdel sqoop;sudo userdel llama;sudo userdel cloudera-scm;sudo userdel postgres;

                              


分享到: