Upgrading to CDH Maintenance Releases Using Parcels
Minimum Required Role: Cluster Administrator (also provided by Full Administrator)
Use the instructions in this section to upgrade to a CDH maintenance release, that is from CDH a.b.x to CDH a.b.y. For example, CDH 4.7.0 to CDH 4.7.1 or CDH 5.1.0 to 5.1.4.
You can upgrade your cluster to another maintenance version using parcels from within the Cloudera Manager Admin Console. Your current CDH cluster can have been installed with either parcels or packages. The new version will use parcels.
The following procedure requires cluster downtime. If you use parcels, have a Cloudera Enterprise license, and have enabled HDFS high availability, you can perform a rolling upgrade that lets you avoid cluster downtime.
To upgrade CDH using parcels, the steps are as follows.
- Before You Begin
- Back up Metastore Databases
- Run the Upgrade Wizard
- Perform Manual Upgrade or Recover from Failed Steps
- Upgrade Wizard Actions
Before You Begin
- Read the CDH 5 Release Notes.
- Read the Cloudera Manager 5 Release Notes.
- Ensure that the Cloudera Manager minor version is equal to or greater than the CDH
minor version. For example:
Target CDH Version Minimum Cloudera Manager Version 5.0.5 5.0.x 5.1.4 5.1.x 5.4.1 5.4.x - Run the Host Inspector and fix every issue.
- If using security, run the The Security Inspector.
- Run hdfs fsck / and hdfs dfsadmin -report and fix every issue.
- Run hbase hbck.
- Review the upgrade procedure and reserve a maintenance window with enough time allotted to perform all steps. For production clusters, Cloudera recommends allocating up to a full day maintenance window to perform the upgrade, depending on the number of hosts, the amount of experience you have with Hadoop and Linux, and the particular hardware you are using.
- Whenever upgrading Impala, whether in CDH or a standalone parcel or package, check your SQL against the newest reserved words listed in incompatible changes. If upgrading across multiple versions or in case of any problems, check against the full list of Impala keywords.
- To avoid lots of alerts during the upgrade process, you can enable maintenance mode on your cluster before you start the upgrade. This will stop email alerts and SNMP traps from being sent, but will not stop checks and configuration validations from being made. Be sure to exit maintenance mode when you have finished the upgrade to re-enable Cloudera Manager alerts.
Back up Metastore Databases
Back up the Sqoop metastore database.- For each affected service:
- If not already stopped, stop the service.
- Back up the database. See Backing Up Databases.
Run the Upgrade Wizard
- Log into the Cloudera Manager Admin console.
- From the tab, click next to the cluster name and select Upgrade Cluster. The Upgrade Wizard starts.
- If the option to pick between packages and parcels displays, select the Use Parcels option.
- In the Choose CDH Version (Parcels) field, select the CDH version. If there are no qualifying parcels, click the Modify the Remote Parcel Repository URLs link to go to the Parcel Configuration Settings page where you can add the locations of parcel repositories. Click Continue.
- Read the notices for steps you must complete before upgrading, click the Yes, I ... checkboxes after completing the steps, and click Continue.
- Cloudera Manager checks that hosts have the correct software installed. Click Continue.
- The selected parcels are downloaded and distributed. Click Continue.
- The Host Inspector runs and displays the CDH version on the hosts. Click Continue.
- Choose the type of upgrade and restart:
- Cloudera Manager upgrade - Cloudera Manager performs all service upgrades and restarts the cluster.
- Click Continue. The Command Progress screen
displays the result of the commands run by the wizard as it shuts down all services, activates the new parcel, upgrades services as necessary, deploys client configuration files, and restarts
services. If any of the steps fails or you click the Abort button the Retry button at the top right is enabled.
You can click Retry to retry the step and continue the wizard or click the Cloudera Manager logo to return to the tab and manually perform the failed step and all following steps. - Click Continue. The wizard reports the result of the upgrade.
- Click Continue. The Command Progress screen
displays the result of the commands run by the wizard as it shuts down all services, activates the new parcel, upgrades services as necessary, deploys client configuration files, and restarts
services. If any of the steps fails or you click the Abort button the Retry button at the top right is enabled.
- Manual upgrade - Select the Let me upgrade the cluster checkbox. Cloudera Manager configures the cluster to the
specified CDH version but performs no upgrades or service restarts. Manually doing the upgrade is difficult and is for advanced users only.
- Click Continue. Cloudera Manager displays links to documentation describing the required upgrade steps.
- Cloudera Manager upgrade - Cloudera Manager performs all service upgrades and restarts the cluster.
- Click Finish to return to the Home page.
Perform Manual Upgrade or Recover from Failed Steps
The actions performed by the upgrade wizard are listed in Upgrade Wizard Actions. If you chose manual upgrade or any of the steps in the Command Progress screen fails, complete the steps as described in that section before proceeding.Upgrade Wizard Actions
Upgrade the Oozie ShareLib
- Go to the Oozie service.
- Select Start to confirm. and click
- Select Install Oozie ShareLib to confirm. and click
Upgrade Sqoop
- Go to the Sqoop service.
- Select Stop to confirm. and click
- Select Upgrade Sqoop to confirm. and click
Upgrade Spark
- Go to the Spark service.
- Select Stop to confirm. and click
- Select Install Spark JAR to confirm. and click
- Select Create Spark History Log Dir to confirm. and click
Restart the Services
- On the Home page, click to the right of the cluster name and select Restart.
- Click the Restart button in the confirmation pop-up that appears. The Command Details window shows the progress of starting services.
Deploy Client Configuration Files
- On the Home page, click to the right of the cluster name and select Deploy Client Configuration.
- Click the Deploy Client Configuration button in the confirmation pop-up that appears.
<< Upgrading to CDH Maintenance Releases | ©2016 Cloudera, Inc. All rights reserved | Upgrading to CDH Maintenance Releases Using Packages >> |
Terms and Conditions Privacy Policy |