美文网首页
CDH的卸载

CDH的卸载

作者: 101之歌 | 来源:发表于2018-02-13 10:35 被阅读0次
    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的卸载

          本文链接:https://www.haomeiwen.com/subject/mlrjtftx.html