cdh教程 卸载

Last updated on November 20, 2024 am

🧙 Questions

cloudera集群卸载

☄️ Ideas

Note: 如果是集群的话 所有节点都要做

删除CDH文件

sudo rm -rf /opt/cloudera

停止CDH代理服务

# 所有节点
sudo systemctl stop cloudera-scm-agent 
# 主节点
sudo systemctl stop cloudera-scm-server

干掉所有CDH进程

sudo kill -9 $(pgrep -f cloudera)

干掉CDH用户

sudo userdel cloudera-scm

删除数据库

drop database cdh_scm
drop database cdh_hive
drop database cdh_monitor

卸载CDH

# 所有节点
sudo yum -y remove cloudera-manager-daemons-6.2.0-968826.el7.x86_64

# 主节点 
sudo yum -y remove cloudera-manager-server-db-2-6.2.0-968826.el7.x86_64
sudo yum -y remove cloudera-manager-server-6.2.0-968826.el7.x86_64

删除CDH_id

sudo rm /var/lib/cloudera-scm-agent/cm_guid
sudo rm -rf /var/run/cloudera-scm-agent/*
sudo rm -rf /var/lib/cloudera-scm-*

#  删除之前的hdfs和yarn的文件
# sudo rm -rf /data/dfs/
# sudo rm -rf /data/yarn/

cdh教程 卸载
https://ispong.isxcode.com/hadoop/cloudera/cdh教程 卸载/
Author
ispong
Posted on
September 28, 2021
Licensed under