1、停止集群服务

1.2、停止Cluster

image.png

  1. 弹出对话框,选择确认

image.png

  1. 等待集群任务执行完毕后点击关闭

image.png

1.2、停止 Cloudera Management Service

  1. 主页面操作Cloudera Management Service选择停止

image.png
2.确认停止
image.png

  1. 等待任务执行完毕点击关闭

image.png

2、解除并移除 Parcels

2.1、停用Parcels

  1. 点击Parcels

image.png

  1. 点击停用

image.png

  1. 选择仅限停用状态,点击确定

image.png

  1. 点击下拉框选择从主机中删除

image.png

  1. 确认删除

image.png

  1. 删除后【激活】会变成【分配】,下拉框选择删除

image.png

  1. 确认删除

image.png

  1. 删除后CDH5会提示下载按钮

image.png

3、删除集群

  1. 删除所有集群

image.png

  1. 确认删除

image.png

  1. 删除成功显示如下界面

image.png

4、卸载 Cloudera Manager Server

  1. 主节点停止cloudera-scm-server服务

    1. systemctl stop cloudera-scm-server
    2. systemctl status cloudera-scm-server

    image.png

  2. 移除 cloudera-scm-server

    1. yum -y remove cloudera-manager-server

    image.png

    5、 卸载 Cloudera Manager Agent 和 和 Managed Software

  3. 所有节点停止cloudera-scm-agent

    1. systemctl stop cloudera-scm-agent
    2. systemctl status cloudera-scm-agent

    image.png

  4. 卸载所有集群软件

    1. yum remove -y cloudera-manager-* avro-tools crunch flume-ng hadoop-hdfs-fuse hadoop-hdfs-nfs3 hadoop-httpfs hadoop-kms hbase-solr hive-hbase hive-webhcat hue-beeswax hue-hbase hue-impala hue-pig hue-plugins hue-rdbms hue-search hue-spark hue-sqoop hue-zookeeper impala impala-shell kite llama mahout oozie pig pig-udf-datafu search sentrysolr-mapreduce spark-core spark-master spark-worker spark-history-server spark-python sqoop sqoop2 whirr hue-common oozie-client solr solr-doc sqoop2-client zookeeper

    image.png

  5. 所有节点执行清除repo

    1. yum clean all

    image.png

    6、 移除 Cloudera Manager 和用户数据

  6. 杀死相关进程

    1. ps ax | fgrep supervisord
    2. kill -9 进程号,杀死相关进程

    image.png

  7. 删除 Cloudera r Manager 数据

    1. umount cm_processes
    2. rm -rf /usr/share/cmf /var/lib/coudera* /var/cache/yum/x86_64/7Server/coudera* /var/log/cloudera* /var/run/coudera* /etc/cloudera* /usr/lib64/cmf

    image.png

  8. 移除 Cloudera Manager Lock File

    1. rm -rf /tmp/.scm_prepare_node.lock

    image.png

  9. 移除用户数据(所有节点)

    1. umount /var/run/cloudera-scm-agent/process
    2. rm -rf /var/lib/flume-ng /var/lib/hadoop* /var/lib/hue /var/lib/navigator /var/lib/oozie /var/lib/solr /var/lib/sqoop* /var/lib/zookeeper /usr/lib/hadoop /usr/lib/hadoop* /usr/lib/hive /usr/lib/hbase /usr/lib/hue /usr/lib/oozie /usr/lib/sqoop* /usr/lib/zookeeper /usr/lib/bigtop* /usr/lib/flume-ng /usr/lib/hcatalog /var/run/hadoop* /var/run/flume-ng /var/run/cloudera* /var/run/oozie /var/run/sqoop2 /var/run/zookeeper /var/run/hbase /var/run/hbase /var/run/impala /var/run/hive /var/run/hdfs-sockets

    image.png

  10. 删除服务(所有节点)

    1. rm -rf /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

    image.png

  11. 删除集群配置(所有节点)

    1. rm -rf /etc/cloudera* /etc/hadoop* /etc/zookeeper* /etc/hive* /etc/hue /etc/impala /etc/sqoop* /etc/oozie /etc/hbase* /etc/hcatalog /etcalternatives/avro-tools /etcalternatives/beeline /etc/alternatives/catalogd /etc/alternatives/cli_* /etc/alternatives/flume* /etc/alternatives/hadoop* /etc/alternatives/hbase* /etc/alternatives/impala* /etc/alternatives/llama* /etc/alternatives/hcat /etc/alternatives/hdfs /etc/alternatives/hive* /etc/alternatives/hue* /etc/alternatives/load_gen /etc/alternatives/mahout* /etc/alternatives/mapred /etc/alternatives/oozie* /etc/alternatives/pig* /etc/alternatives/pyspark /etc/alternatives/sentry* /etc/alternatives/solr* /etc/alternatives/spark* /etc/alternatives/sqoop* /etc/alternatives/statestored /etc/alternatives/whirr /etc/alternatives/yarn /etc/alternatives/zookeeper /var/lib/alternatives/avro-tools /var/lib/alternatives/beeline /var/lib/alternatives/catalogd /var/lib/alternatives/cli_* /var/lib/alternatives/flume* /var/lib/alternatives/hadoop* /var/lib/alternatives/hbase* /var/lib/alternatives/hcat /var/lib/alternatives/hdfs /var/lib/alternatives/hive* /var/lib/alternatives/load_gen /var/lib/alternatives/hue* /var/lib/alternatives/impala* /var/lib/alternatives/llama* /var/lib/alternatives/mahout* /var/lib/alternatives/mapred /var/lib/alternatives/oozie* /var/lib/pig* /var/lib/alternatives/pyspark /var/lib/alternatives/sentry* /var/lib/alternatives/solr* /var/lib/alternatives/spark* /var/lib/alternatives/sqoop* /var/lib/alternatives/statestored /var/lib/whirr /var/lib/alternatives/yarn /var/lib/alternatives/zookeeper

    image.png

  12. 所有节点 删除 hdfs ,yarn

    1. rm -rf /data0/*
    2. rm -rf /data1/*
    3. rm -rf /opt/cloudera/
    4. rm -rf /var/lib/cloudera-scm-agent/cm_guid

    image.png

    7、 移除数据库

  13. 停止mariadb

    1. systemctl stop mariadb
    2. systemctl status mariadb

    image.png

  14. 卸载mariadb

    1. yum -y remove mariadb*

    image.png

  15. 检查是否有没有卸掉的包

    1. rpm -qa|grep mariadb
    2. mariadb-5.5.56-2.el7.x86_64
    3. mariadb-libs-5.5.56-2.el7.x86_64
    4. mariadb-server-5.5.56-2.el7.x86_64
    5. rpm -e --nodeps 包名

    image.png

  16. 删除遗留目录

    1. rm -rf /var/lib/mysql/

    image.png