CDP集群卸载过程
1. 登录到Cloudera Manager,并停止整个集群服务。
2. 停用并移除所有Parcel
3. “停用”CDH7的Parcel。
4. 从主机删除”CDH6的Parcel
5. 删除集群
6. 登录server机器,停止CM Server服务
systemctl stop cloudera-scm-server
7. 移除Cloudera Manager Server相关包。
yum -y remove cloudera-manager-server
8. 所有节点停止Cloudera Manager Agent服务
pssh -h node.list -i “systemctl stop supervisord”
pssh -h node.list -i “systemctl stop cloudera-scm-agent”
9. 所有节点运行清除Cloudera所管理软件的命令
pssh -h node.list -i “yum -y remove ‘cloudera-manager-*’”
10. 所有节点运行clean命令
pssh -h node.list -i “yum clean all”
11. 移除Cloudera Manager数据 ,在所有节点执行umount命令
pssh -h node.list -i “umount cm_processes”
12. 在所有节点删除Cloudera Manager数据。
pssh -h node.list -i “rm -rf /usr/share/cmf /var/lib/cloudera* /var/cache/yum/cloudera* /var/log/cloudera* /var/run/cloudera*”
13. 所有节点移除Cloudera Manager Lock文件
pssh -h node.list -i “rm /tmp/.scm_prepare_node.lock”
14. 所有节点移除用户数据
pssh -h node.list -i “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 /var/lib/hbase /var/lib/hive* /var/lib/impala /var/lib/llama /var/lib/sentry /var/lib/spark* /var/lib/kafka /var/lib/kudu /var/lib/ranger /var/lib/zeppelin”
15. 在所有节点执行删除Hadoop相关数据命令
pssh -h node.list -i “rm -rf /dfs /yarn /impala”
16. 在所有节点删除/etc下的配置文件
pssh -h node.list -i “rm -rf /etc/cloudera* /etc/flume* /etc/hadoop* /etc/zookeeper* /etc/hive* /etc/hue /etc/impala /etc/sqoop* /etc/oozie /etc/hbase* /etc/kafka /etc/kudu /etc/mahout /etc/spark* /etc/llama /etc/solr /etc/sentry”
17. 在所有节点删除/var/log下的日志文件夹
pssh -h node.list -i “rm -rf /var/log/cloudera* /var/log/hadoop* /var/log/hbase /var/log/hive /var/log/hue* /var/log/impala* /var/log/kudu /var/log/oozie /var/log/spark* /var/log/zookeeper /var/log/kafka”
18. 在所有节点删除/opt/cloudera下的安装文件
pssh -h node.list -i “rm -rf /opt/cloudera*”