Cloudera Manager production cluster upgrade process __cloudera

Source: Internet
Author: User
Tags documentation postgresql mysql backup hadoop fs

1. Save the RPM package and the necessary dependent files to Linux according to the directory structure.

Download URL: e-primary.cloudera.com/cm5/redhat/6/x86_64/cm/5.9.0/

All in Node0.

Only agents and daemons are deposited in the node1-3.

Parcel incoming Linux/opt/cloudera/parcel-repo, change permissions 755.

2. Backup

Http://www.cloudera.com/content/www/zh-CN/documentation/enterprise/5-3-x/topics/cm_ag_db_for_cm_upgrades.html Upgrade Database Considerations

Http://www.cloudera.com/content/www/zh-CN/documentation/enterprise/5-3-x/topics/cm_ag_backup_dbs.html#xd_ 583C10BFDBD326BA--6EED2FB8-14349D04BEE--7E98 Backup Database

3. Stop the cluster and stop the service.

Stop Cloudera Manager Serve

sudo service cloudera-scm-server stop

Stop embedded Database

sudo service cloudera-scm-server-db stop

Stop the agent on all nodes

sudo service cloudera-scm-agent stop

4. Upgrade cm on each host. To use the command:

sudo yum clean all

Sudoyum--nogpgcheck localupdate cloudera-scm-*

Law II: Another Way "need to implement change local repo source"--(/etc/yum.repo.d/cloudera-manager.repo)

sudo yum clean all

sudo yum upgrade cloudera-*

5. Check the installation of the RPM package.

Rpm-qa | grep Cloudera

"If you are using an add-on package for embedded databases and plug-ins, you may also see a cloudera-manager-server-db-2 entry, depending on the software previously installed in the server host." If the Cloudera-manager-server-db-2 package is installed and you do not intend to use an embedded database, you can delete the package. 】

6. Start Http:service httpd start

Start Cloudera Manager Server

If you are using the Cloudera Manager's embedded PostgreSQL database, start the database:

sudo service cloudera-scm-server-db start

Start Cloudera Manager Server:

sudo service cloudera-scm-server start

7. Start the NODE0 agent

sudo service cloudera-scm-agent start

8. Open the Cloudera Manager Admin Console for 4 host upgrades.

Select: Rerun host Upgrade Wizard

Agent Upgrades:

9. Upgrade CDH.

Http://www.cloudera.com/content/www/zh-CN/documentation/enterprise/5-3-x/topics/cm_mc_upgrade_to_cdh52_using_parcels.html

Additional:

Backup:

1. Built-in database

Cd/etc/cloudera-scm-server

Configuration file location for embedded database PostgreSQL:

/var/lib/cloudera-scm-server-db

2.Namenode Backup

3.Hbase Backup (You can use no backup and its metadata exists in HDFs):

Hbaseshell

List_snapshots List Snapshots

Snapshot ' myTable ', ' myTableSnapshot-122112 ' Build a snapshot
Hadoop fs-ls/hbase/.hbase-snapshot List Snapshots
Backup snapshots:
Hadoop FS-CP <src><dst>

Permissions

Hadoop Fs-chmod 777/blogsnap

4.mysql Backup.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.