1、停止集群服务
1.2、停止Cluster
- 弹出对话框,选择确认
- 等待集群任务执行完毕后点击关闭
1.2、停止 Cloudera Management Service
- 主页面操作Cloudera Management Service选择停止
2.确认停止
- 等待任务执行完毕点击关闭
2、解除并移除 Parcels
2.1、停用Parcels
- 点击Parcels
- 点击停用
- 选择仅限停用状态,点击确定
- 点击下拉框选择从主机中删除
- 确认删除
- 删除后【激活】会变成【分配】,下拉框选择删除
- 确认删除
- 删除后CDH5会提示下载按钮
3、删除集群
- 删除所有集群
- 确认删除
- 删除成功显示如下界面
4、卸载 Cloudera Manager Server
主节点停止cloudera-scm-server服务
systemctl stop cloudera-scm-server
systemctl status cloudera-scm-server
移除 cloudera-scm-server
yum -y remove cloudera-manager-server
5、 卸载 Cloudera Manager Agent 和 和 Managed Software
所有节点停止cloudera-scm-agent
systemctl stop cloudera-scm-agent
systemctl status cloudera-scm-agent
卸载所有集群软件
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
所有节点执行清除repo
yum clean all
6、 移除 Cloudera Manager 和用户数据
杀死相关进程
ps ax | fgrep supervisord
kill -9 进程号,杀死相关进程
删除 Cloudera r Manager 数据
umount cm_processes
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
移除 Cloudera Manager Lock File
rm -rf /tmp/.scm_prepare_node.lock
移除用户数据(所有节点)
umount /var/run/cloudera-scm-agent/process
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
删除服务(所有节点)
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
删除集群配置(所有节点)
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
所有节点 删除 hdfs ,yarn
rm -rf /data0/*
rm -rf /data1/*
rm -rf /opt/cloudera/
rm -rf /var/lib/cloudera-scm-agent/cm_guid
7、 移除数据库
停止mariadb
systemctl stop mariadb
systemctl status mariadb
卸载mariadb
yum -y remove mariadb*
检查是否有没有卸掉的包
rpm -qa|grep mariadb
mariadb-5.5.56-2.el7.x86_64
mariadb-libs-5.5.56-2.el7.x86_64
mariadb-server-5.5.56-2.el7.x86_64
rpm -e --nodeps 包名
删除遗留目录
rm -rf /var/lib/mysql/