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 -q -uroot -p --single-transaction --flush-logs --master-data=2 --delete-master-logs --all-databases > backup.sql)

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

Upgrade Cloudera Manager and CDH to 5.2.1_第1张图片

Upgrade Cloudera Manager and CDH to 5.2.1_第2张图片

Upgrade Cloudera Manager and CDH to 5.2.1_第3张图片

Upgrade Cloudera Manager and CDH to 5.2.1_第4张图片


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)

Upgrade Cloudera Manager and CDH to 5.2.1_第5张图片

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

4. Download, Distribute, and Activate Parcels

Upgrade Cloudera Manager and CDH to 5.2.1_第6张图片

Upgrade Cloudera Manager and CDH to 5.2.1_第7张图片

Upgrade Cloudera Manager and CDH to 5.2.1_第8张图片


5. start cloudera management service


6. finish following steps

Upgrade Cloudera Manager and CDH to 5.2.1_第9张图片


7. remove old parcels

Upgrade Cloudera Manager and CDH to 5.2.1_第10张图片

Upgrade Cloudera Manager and CDH to 5.2.1_第11张图片

ok