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 and click Upgrade HDFS Metadata to confirm.
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 and click Stop to confirm.
- Select and click Upgrade Sentry Database Tables to confirm.
- 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 and click Stop to confirm.
- If the Sentry service is not running, start it:
- Select and click Start to confirm.
- Select and click Migrate Sentry Privileges for Solr to confirm
- If the Solr service is running, stop it:
- If the Sentry service is running, stop it:
- Select and click Stop to confirm.
- If the Zookeeper service is not running, start it:
- Select and click Start to confirm.
- If the HDFS service is not running, start it:
- Select and click Start to confirm.
- Select and click Reinitialize Solr State for Upgrade to confirm.
- Set the Solr configuration parameter Solr Server for Upgrade to the Solr service being upgraded.
- Select and click Bootstrap Solr Configuration to confirm.
- 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 if enabled, and click Migrate Policy file to Sentry to confirm.
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 and click Clean NodeManager Recovery Directory to confirm.
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 and click Install YARN MapReduce Framework JARs to confirm.
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 and click Stop to confirm.
- Select and click Install Spark JAR to confirm.
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 and click Stop to confirm.
- Select and click Upgrade Hive Metastore Database Schema to confirm.
- If you have multiple instances of Hive, perform the upgrade on each metastore database.
- Select and click Validate Hive Metastore Schema to check that the schema is now valid.
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 and click Validate Hive Metastore Schema to confirm.
- If you have multiple instances of Hive, perform the validation on each metastore database.
- Select and click Validate Hive Metastore Schema to check that the schema is now valid.
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 and click Stop to confirm.
- Select and click Upgrade Oozie Database Schema to confirm.
Upgrade the Oozie SharedLib
- Go to the Oozie service
- If the Oozie service is stopped, start it:
- Select and click Start to confirm.
- Select and click Install Oozie SharedLib to confirm.
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 page, click the down arrow to the right of the cluster name and select Start or Restart.
- 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.