master节点:
1、通过Cloudera Manager停止集群和Cloudera Manager服务
2、卸载Cloudera Manager Server
如果用cloudera-manager-installer.bin方式安装,通过如下卸载:
sudo /usr/share/cmf/uninstall-cloudera-manager.sh
slave节点:
删除下面的目录:如果有的删除不掉,需要我们重启机子再执行
sudo service cloudera-scm-agent stop
sudo yum -y remove 'cloudera-manager-*'
sudo yum clean all
sudo rm -Rf /usr/share/cmf /var/lib/cloudera* /var/cache/yum/cloudera* /var/log/cloudera* /var/run/cloudera*
sudo rm /tmp/.scm_prepare_node.lock
sudo 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
sudo rm -Rf /data/dfs /data/mapred /data/yarn
rm -rf /opt/cloudera/
rm -rf /etc/yum.repos.d/cloudera*
rm -rf /etc/cloudera-scm-server/*
rm -rf /etc/cloudera-scm-agent/*
drop database hive;
drop database hue;
drop database oozie;
cd /home/CDH\ 5.9.0安装包/
cp cloudera-manager.repo /etc/yum.repos.d/
yum clean all
cd /home/CDH\ 5.9.0安装包/rpms
yum -y install *.rpm
cd /home/CDH\ 5.9.0安装包/Parcel/
cp * /opt/cloudera/parcel-repo/
CDH的卸载
最新推荐文章于 2024-07-11 13:51:56 发布