Press "Enter" to skip to content

Cloudera Manager卸载

主机环境:
[root@cdh5 tmp]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.4 (Maipo)
[root@cdh5 tmp]# uname -a
Linux cdh5 3.10.0-693.el7.x86_64 #1 SMP Thu Jul 6 19:56:57 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux

CDH5安装参考:https://www.tracymc.cn/archives/199

1.关闭集群中的所有服务
这个可以通过clouder manger 主页关闭集群.

2.卸载Cloudera-Manager
[root@cdh5 ~]# /usr/share/cmf/uninstall-cloudera-manager.sh(都选Yes)

[root@cdh5 ~]# service cloudera-scm-agent stop
[root@cdh5 ~]# df -h
文件系统 容量 已用 可用 已用% 挂载点
/dev/mapper/rhel-root 17G 15G 2.7G 85% /
devtmpfs 893M 0 893M 0% /dev
tmpfs 908M 4.0K 908M 1% /dev/shm
tmpfs 908M 9.2M 899M 2% /run
tmpfs 908M 0 908M 0% /sys/fs/cgroup
/dev/sda1 1014M 179M 836M 18% /boot
tmpfs 182M 44K 182M 1% /run/user/0
tmpfs 182M 4.0K 182M 1% /run/user/42
cm_processes 908M 3.5M 905M 1% /run/cloudera-scm-agent/process
[root@cdh5 ~]# umount /run/cloudera-scm-agent/process
[root@cdh5 ~]# rm -rf /usr/share/cmf /var/lib/cloudera* /var/cache/yum/x86_64/6/cloudera* /var/log/cloudera* /var/run/cloudera* /etc/cloudera*

3.卸载安装包
[root@cdh5 ~]# rpm -qa | grep cloudera
[root@cdh5 ~]# for f in rpm -qa | grep cloudera ; do rpm -e ${f} ; done

4.清除安装文件
[root@cdh5 ~]# 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

5.杀死相关进程
for u in hdfs mapred cloudera-scm hbase hue zookeeper oozie hive impala flume; do sudo kill $(ps -u $u -o pid=); done

6.删除parcel包分发文件和解压文件
[root@cdh5 ~]# rm -rf /opt/cloudera/parcel-cache /opt/cloudera/parcels

Be First to Comment

发表评论

电子邮件地址不会被公开。 必填项已用*标注