Upgrading CDH Manually after an Upgrade Failure
The steps below should be executed roughly in the order that they are listed, and should only be executed if the service is configured.
- Start ZooKeeper
- Start Kudu
- Upgrade HDFS Metadata
- Start HDFS
- Start HBASE
- Upgrade the Sentry Database
- Start Sentry
- Start KAFKA
- Upgrade Solr
- Start FLUME
- Upgrade KeyStore Indexer
- Start Key-Value Store Indexer
- Upgrade YARN
- Install MR Framework Jars
- Start YARN
- Deploy Client Configuration Files
- Upgrade the Spark Standalone Service
- Start Spark Services
- Upgrade the Hive Metastore Database
- Start Hive
- Validate the Hive Metastore Database Schema
- Start Impala
- Upgrade Oozie
- Upgrade the Oozie SharedLib
- Start Remaining Cluster Services
- Test the Cluster and Finalize HDFS Metadata
Start ZooKeeper
Required for the following upgrades:
- CDH 5.x to 6.0.0 or higher
- Go to the ZooKeeper service.
- Select .
Start Kudu
Required for the following upgrades:
- CDH 5.x to 6.0.0 or higher
- Go to the KUDU service.
- Select .
Upgrade HDFS Metadata
Required for the following upgrades:
- CDH 5.x to 6.0.0 or higher
- Go to the HDFS service.
- Select Upgrade HDFS Metadata to confirm. and click
Start HDFS
Required for the following upgrades:
- CDH 5.x to 6.0.0 or higher
- Go to the HDFS service.
- Select .
Start HBASE
Required for the following upgrades:
- CDH 5.x to 6.0.0 or higher
- Go to the HBASE service.
- Select .
Upgrade the Sentry Database
Required for the following upgrades:
- CDH 5.x to 5.8.x
- CDH 5.x to 5.9.x
- CDH 5.x to 5.10.x
- CDH 5.x to 5.13.x
- CDH 5.x to 6.0.0 or greater
- Go to the Sentry service.
- If the Sentry service is running, stop it:
- Select Stop to confirm. and click
- Select Upgrade Sentry Database Tables to confirm. and click
- If you are upgrading with an Oracle database you must manually add the index on the AUTHZ_PATH.AUTHZ_OBJ_ID column if it does not already exist. Adding the index manually decreases the
time Sentry takes to get a full snapshot for HDFS sync. Use the following command to add the index:
CREATE INDEX "AUTHZ_PATH_FK_IDX" ON "AUTHZ_PATH" ("AUTHZ_OBJ_ID");
Start Sentry
Required for the following upgrades:
- CDH 5.x to 6.0.0 or higher
- Go to the Sentry service.
- Select .
Start KAFKA
Required for the following upgrades:
- CDH 5.x to 6.0.0 or higher
- Go to the KAFKA service.
- Select .
Upgrade Solr
Required for the following upgrades:
- CDH 5.x to 6.0.0 or higher
- If you have Sentry service in the cluster:
- If the Solr service is running, stop it:
- Select Stop to confirm. and click
- If the Sentry service is not running, start it:
- Select Start to confirm. and click
- Select Migrate Sentry Privileges for Solr to confirm and click
- If the Solr service is running, stop it:
- If the Sentry service is running, stop it:
- Select Stop to confirm. and click
- If the Zookeeper service is not running, start it:
- Select Start to confirm. and click
- If the HDFS service is not running, start it:
- Select Start to confirm. and click
- Select Reinitialize Solr State for Upgrade to confirm. and click
- Set the Solr configuration parameter Solr Server for Upgrade to the Solr service being upgraded.
- Select Bootstrap Solr Configuration to confirm. and click
- Start the Solr and dependent services. Click .
- Click .
Start FLUME
Required for the following upgrades:
- CDH 5.x to 6.0.0 or higher
- Go to the FLUME service.
- Select .
Upgrade KeyStore Indexer
Required for the following upgrades:
- CDH 5.x to 6.0.0 or higher
- Go to the KeyStore Indexer service.
- Select Migrate Policy file to Sentry to confirm. if enabled, and click
Start Key-Value Store Indexer
Required for the following upgrades:
- CDH 5.x to 6.0.0 or higher
- Go to the Key-Value Store Indexer service.
- Select .
Upgrade YARN
Required for the following upgrades:
- CDH 5.x to 6.0.0 or higher
- Ensure that the ZooKeeper and HDFS services are running.
- Ensure that the YARN service is stopped.
- Go to the YARN service.
- Select Clean NodeManager Recovery Directory to confirm. and click
Install MR Framework Jars
Required for all CDH upgrades:
- CDH 5.x to 6.0.0 or higher
- Any upgrade to CDH 6.3.0/above, if OpenJDK11 is used.
- Go to the YARN service.
- Select Install YARN MapReduce Framework JARs to confirm. and click
Start YARN
Required for the following upgrades:
- CDH 5.x to 6.0.0 or higher
- Go to the YARN service.
- Select .
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.
Upgrade the Spark Standalone Service
Required for all CDH upgrades:
- Go to the Spark service.
- If the Spark service is running, stop it:
- Select Stop to confirm. and click
- Select Install Spark JAR to confirm. and click
Start Spark Services
Required for the following upgrades:
- CDH 5.x to 6.0.0 or higher
Note, all SPARK and SPARK2 are no longer differentiated, they are just SPARK.
- Go to each Spark service.
- Select .
Upgrade the Hive Metastore Database
Required for the following upgrades:
- CDH 5.x to 6.0.0 or higher
- Go to the Hive service.
- If the Hive service is running, stop it:
- Select Stop to confirm. and click
- Select Upgrade Hive Metastore Database Schema to confirm. and click
- If you have multiple instances of Hive, perform the upgrade on each metastore database.
- Select Validate Hive Metastore Schema to check that the schema is now valid. and click
Start Hive
Required for the following upgrades:
- CDH 5.x to 6.0.0 or higher
- Go to the Hive service.
- Select .
Validate the Hive Metastore Database Schema
Required for the following upgrades:
- CDH 5.x to 6.0.0 or higher
- Select Validate Hive Metastore Schema to confirm. and click
- If you have multiple instances of Hive, perform the validation on each metastore database.
- Select Validate Hive Metastore Schema to check that the schema is now valid. and click
Start Impala
Required for the following upgrades:
- CDH 5.x to 6.0.0 or higher
- Go to the Impala service.
- Select .
Upgrade Oozie
Required for the following upgrades:
- CDH 5.x to 6.0.0 or higher
- Go to the Oozie service.
- Select Stop to confirm. and click
- Select Upgrade Oozie Database Schema to confirm. and click
Upgrade the Oozie SharedLib
- Go to the Oozie service
- If the Oozie service is stopped, start it:
- Select Start to confirm. and click
- Select Install Oozie SharedLib to confirm. and click
Start Remaining Cluster Services
- Use rolling restart or full restart.
- Ensure that all services are started or restarted. You can use Cloudera Manager to start the cluster, or you can restart the services individually. The Cloudera Manager Home page indicates which services have stale configurations and require restarting.
- To start or restart the cluster:
- On the Start or Restart. page, click the down arrow to the right of the cluster name and select
- Click Start that appears in the next screen to confirm. The Command Details window shows the progress of starting services.
- When All services successfully started appears, the task is complete and you can close the Command Details window.
Test the Cluster and Finalize HDFS Metadata
To determine if you can finalize the upgrade, run important workloads and ensure that they are successful. After you have finalized the upgrade, you cannot roll back to a previous version of HDFS without using backups. Verifying that you are ready to finalize the upgrade can take a long time.
-
- Go to the HDFS service.
- Click the Instances tab.
- Click the link for the NameNode instance. If you have enabled high availability for HDFS, click the link
labeled NameNode (Active).
The NameNode instance page displays.
- Select and click Finalize Metadata Upgrade to confirm.