卸载CDH5.10.0-阿里云开发者社区

开发者社区> 大数据> 正文

卸载CDH5.10.0

简介: 集群中每个节点都要执行: 停止服务 service cloudera-scm-server stop service cloudera-scm-agent stop 卸载安装包  yum remove -y cloudera*  yum clean all 或者: for...

集群中每个节点都要执行:


停止服务

service cloudera-scm-server stop

service cloudera-scm-agent stop


卸载安装包

 yum remove -y cloudera*

 yum clean all

或者:

for f in `rpm -qa | grep cloudera`; do rpm -e ${f} ; done


#kill相关hadoop组件进程

for u in cloudera-scm flume hadoop hdfs hbase hive httpfs hue impala llama mapred oozie solr spark sqoop sqoop2 yarn zookeeper; do sudo kill $(ps -u $u -o pid=); done


#干掉监督者supervisor进程

kill -9 $(pgrep -f supervisord)


卸载/var/run/cloudera-scm-agent/process

umount cm_processes


删除文件

rm -rf /etc/cloudera* /usr/share/cmf     /var/log/cloudera*  /var/lib/cloudera*   /var/run/cloudera*     /var/run/hadoop*  /var/run/hdfs*  /var/cache/yum/x86_64/6/cloudera*

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

rm -rf /var/lib/alternatives/beeline /var/lib/alternatives/flume* /var/lib/alternatives/hadoop* /var/lib/alternatives/hbase* /var/lib/alternatives/hdfs* /var/lib/alternatives/hive* /var/lib/alternatives/impala* /var/lib/alternatives/oozie* /var/lib/alternatives/pig* /var/lib/alternatives/spark* /var/lib/alternatives/mapred* /var/lib/alternatives/sqoop* /var/lib/alternatives/yarn* /var/lib/alternatives/zookeeper* /var/lib/alternatives/hue* /var/lib/alternatives/solr* /var/lib/alternatives/hcat*

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/hadoop* /etc/zookeeper* /etc/hive* /etc/hue /etc/impala /etc/sqoop* /etc/oozie /etc/hbase* /etc/hcatalog

rm -rf  /tmp/.scm_prepare_node.lock  /tmp/cmflistener-std*  

rm -rf /dfs  /yarn 

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


清除数据库数据:

drop database cmf;

drop database amon;

drop database hive;


版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

分享:
大数据
使用钉钉扫一扫加入圈子
+ 订阅

大数据计算实践乐园,近距离学习前沿技术

其他文章