首页 > 代码库 > Upgrade Cloudera Manager and CDH to 5.2.1

Upgrade Cloudera Manager and CDH to 5.2.1

Upgrade Cloudera Manager to 5.2.1


1. Stop the Cloudera Management Service
2. Stop the Hive service and all services such as Impala and Hue that use the Hive metastore.
3. Backup MySQL Databases (mysqldump -uroot -p --single-transaction --flush-logs --master-data=http://www.mamicode.com/2 --delete-master-logs --all-databases > >
4. service cloudera-scm-server stop; service cloudera-scm-agent stop

5. (optional) yum -y install oracle-j2sdk1.7
rm -rf /usr/java/default
ln -s  /usr/java/jdk1.7.0_67-cloudera /usr/java/default

6. yum clean all; yum -y upgrade cloudera-manager-daemons cloudera-manager-server cloudera-manager-agent
service cloudera-scm-server start

7. login Cloudera Manager Web UI

wKioL1R9ZgmDCTn9AALBc-Kggek537.jpg

wKiom1R9ZX_hfsANAAOPE29ozdA593.jpg

wKioL1R9Zgrxe0EmAAFxN4JJK7M227.jpg

wKioL1R9ZgqTaU5IAAMQFy65Jcc514.jpg


8. Start the Cloudera Management Service


Upgrade CDH to 5.2.1

1. Before You Begin
Run sudo -u hdfs hdfs fsck / and sudo -u hdfs hdfs dfsadmin -report and fix any issues
Run sudo -u hbase hbase hbck to make sure there are no inconsistencies

2. stop cluster and cloudera management service

3. Back up the HDFS Metadata on the NameNode (including active and standby namenode)

wKiom1R9c9jD7FROAANNYSM6l-M901.jpg

tar -zcvf /root/nn_backup_data.tar.gz /dfs/nn

4. Download, Distribute, and Activate Parcels

wKioL1R9dH7DC88xAAYBYEtTMes025.jpg

wKioL1R9dKazdRv_AAOEScW43wE684.jpg

wKiom1R9dBvSHMNFAAHXXX3Agno465.jpg


5. start cloudera management service


6. finish following steps

wKioL1R9dN6BT_iiAARmh3gikzI152.jpg


7. remove old parcels

wKiom1R9e2-DhlJ3AAHaVOq-n0o730.jpg

wKioL1R9e_qRHbChAAHWDePNyMU966.jpg

ok


本文出自 “Ilovecat(个人笔记)” 博客,请务必保留此出处http://hj192837.blog.51cto.com/655995/1585600

Upgrade Cloudera Manager and CDH to 5.2.1