1. 下载cm和cdh安装包
http://archive.cloudera.com/cdh5/parcels/5.13/ 下载之后替换yum之前版本的镜像,可参考cdh安装文档 |
2. 关闭server 和 agent服务
#service cloudera-scm-agent stop # service cloudera-scm-server stop |
3. 查看cm安装包
# yum list installed|grep cloudera-manager 或者 # rpm -qa |grep cloudera-manager |
4. 备份数据库
# mysqldump -ucmf -p123456 cmf > scm_server_db_backup.bak |
5. 卸载安装包
# rpm -qa |grep cloudera-manager |xargs rpm –e # yum clean all |
6. 清理残留文件信息
#rm -rf /var/log/cloudera-scm-* #rm -rf /var/run/cloudera-scm-* |
7. 查看进程
# lsof |grep cloudera-scm-agent |
8. Kill 掉进程
#lsof |grep cloudera-scm-agent|xargs kill -9 |
9. server安装
#yum install cloudera-manager-daemons cloudera-manager-server -y |
10. agent安装
#yum install cloudera-manager-agent cloudera-manager-daemons -y |
11. 每个agent指定server
# sed -i "s/server_host=localhost/server_host=cre7/g" /etc/cloudera-scm-agent/config.ini |
12. 启动server
# service cloudera-scm-server start |
13. 启动agent
#service cloudera-scm-agent start |