CDH6.x 安装失败卸载,卸载中 无法删除“/var/run/cloudera-scm-agent/process“: 设备或资源忙 问题处理

文章目录


清理agent process 时报错问题| rm: 无法删除"/var/run/cloudera-scm-agent/process": 设备或资源忙 问题处理

umount /var/run/cloudera-scm-agent/process

一、停止CM

  • If you used the cloudera-manager-installer.bin file - Run the following command on the Cloudera Manager Server host:

    sudo /usr/share/cmf/uninstall-cloudera-manager.sh
    
  • If you did not use the cloudera-manager-installer.bin file - If you installed the Cloudera Manager Server using a different installation method such as Puppet, run the following commands on the Cloudera Manager Server host.

    1、停止Cloudera Manager Server及其数据库

    sudo service cloudera-scm-server stop
    # 如果没有安装cloudera-scm-server-db 此处忽略
    sudo service cloudera-scm-server-db stop
    

    2、卸载Cloudera Manager Server及其数据库。如果安装了该选项,则描述的该过程还将删除嵌入式PostgreSQL数据库软件。如果您未使用嵌入式PostgreSQL数据库,请省略cloudera-manager-server-db 。

    sudo yum remove cloudera-manager-server
    # 没安装忽略
    sudo yum remove cloudera-manager-server-db-2
    

二、停止Agent

1、stop Cloudera Manager Agent.

sudo systemctl stop supervisord
or
service cloudera-scm-agent stop

2、卸载

sudo yum remove 'cloudera-manager-*'

3、清理yum

sudo yum clean all

三、数据清理

  • 清理托管进程
    在所有agent 机器上 执行 ,终止所有正在运行的Cloudera Manager和托管进程:

    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
    
  • 清理 Cloudera Manager 数据

    sudo umount cm_processes
    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
    
  • 清理用户数据

    在所有agent机器上

    清理文件

    umount /var/run/cloudera-scm-agent/process
    
    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_drive_path/dfs data_drive_path/mapred data_drive_path/yarn
    
    • 清理文件时 可能会遇见 rm: 无法删除"/var/run/cloudera-scm-agent/process": 设备或资源忙

      umount /var/run/cloudera-scm-agent/process
      
  • 清理数据库相关用户文件

    删除 数据库之前创建的相关用户
    

    详情参考官网:CDH官方文档:卸载手册

上一篇:Git本地操作和远程操作


下一篇:软件配置管理的作用?软件配置包括什么?