Preparing for the Operating System Upgrade
Before initiating an operating system upgrade, you must complete several prerequisite operations to ensure environmental readiness. These steps apply to both offline and rolling upgrade strategies and focus on validating software compatibility and infrastructure access. Neglecting these preparations can lead to significant service disruptions, incompatible software configurations, or extended cluster downtime during the migration process.
Verify Parcel Availability
Confirm that your current versions of Cloudera Manager and Cloudera Runtime officially support the target operating system. You must verify that the Cloudera Manager server and all cluster hosts can access the necessary packages and parcels through public or local repositories. This validation step prevents the deployment of Cloudera Manager onto an unsupported platform, which could cause agent communication failures.
- Pre-OS Upgrade Requirements
-
-
Verify that your versions of Cloudera Manager and CDH or Cloudera Runtime support your new operating system. See Operating System Requirements for Cloudera Base on premises.
-
Upgrade Cloudera Manager or Cloudera Runtime Cluster if your current versions do not support the new operating system, see Upgrading Cloudera Manager 7 or Upgrading a Cloudera Runtime Cluster.
-
Ensure all hosts can access the Cloudera Manager server, daemon, and agent packages that support the new operating system. You can provide this access through https://archive.cloudera.com, a local package repository, or directly on the host if you use a pre-created image.
-
Ensure the Cloudera Manager server can access the parcels that support the new operating system. You can provide this access using either the remote repository at https://archive.cloudera.com or a local parcel repository. If you use a pre-created image, the hosts might already contain the distributed parcels locally.
-
Establish access to the Software
Cloudera Manager requires access to a package repository containing updated software for the new operating system. You can access Cloudera public repositories directly, or you can download and host them through a local repository within your network; however, you must set up a local repository if your cluster hosts lack internet connectivity.
- Configure the Package Repository: Create a repository file
so the package manager can locate and download the binaries. Perform one of the following
actions, depending on whether you use a local package repository:
-
Using a Local Package Repository (Required if your cluster hosts do not have access to the internet.)
- Configure a local package repository hosted on your network.
-
In the Package Repository URL, replace the entire URL with the URL for your local package repository. You do not require a username or password to access local repositories.
- Click Apply.
-
Using the Cloudera Public Repository
- Substitute your
USERNAMEandPASSWORDin the Package Repository URL where indicated in the URL. - Click Apply
- Substitute your
-
- Create the Cloudera Manager repository file (
cloudera_manager.repoorcloudera-manager.listfor Ubuntu) to copy to all hosts. Verify that this file has a valid path to the remote Cloudera repository or your local repository before you continue. Ensure that the Cloudera Manager version matches the current version on the cluster. - Configure the Repository File: Perform the steps corresponding to your operating
system to allow the package manager to locate the Cloudera Manager binaries.
- RHEL / CentOS
-
-
Create a file named
/etc/yum.repos.d/cloudera-manager.repoand add the following content:[cloudera-manager] # Packages for Cloudera Manager name=Cloudera Manager baseurl=https://archive.cloudera.com/p/cm7/[**Cloudera Manager version**]/redhat[version]/yum/ gpgkey=https://archive.cloudera.com/p/cm7/[**Cloudera Manager version**]/redhat[version]/yum/RPM-GPG-KEY-cloudera gpgcheck=1 -
Copy this file to the same location on all cluster hosts.
-
- SLES
-
-
Create a file named
/etc/zypp/repos.d/cloudera-manager.repoand add the following content:[cloudera-manager] # Packages for Cloudera Manager name=Cloudera Manager baseurl=https://archive.cloudera.com/p/cm7/[**Cloudera Manager version**]/sles[version]/yum/ gpgkey=https://archive.cloudera.com/p/cm7/[**Cloudera Manager version**]/sles[version]/yum/RPM-GPG-KEY-cloudera gpgcheck=1 -
Copy this file to the same location on all cluster hosts.
-
- Ubuntu
-
-
Create a file named
/etc/apt/sources.list.d/cloudera_manager.listand add the following content:# Packages for Cloudera Manager deb [arch=amd64] https://myUsername:myPassword@archive.cloudera.com/p/cm7/[**Cloudera Manager version**]/ubuntu[version]/apt focal-cm[**Cloudera Manager version**] contrib -
Run the following command to synchronize your local package index with the newly added Cloudera repository:
sudo apt-get update -
Copy this file to the same location on all cluster hosts.
-
-
Review Cloudera Manager Package Dependencies: A Cloudera Manager upgrade often introduces new package dependencies. Since your organization might restrict new package installations or require prior approval, you can identify the exact packages the system intends to install or upgrade. Run the following command for your operating system to review these dependencies before you begin:
- RHEL / CentOS
-
yum deplist cloudera-manager-agent - SLES
-
zypper info --requires cloudera-manager-agent - Ubuntu
-
apt-cache depends cloudera-manager-agent
Backing up before upgrading the Operating System
This section describes how to back up critical files and databases on your host before you begin the operating system upgrade. Performing these backups ensures you can recover your configuration, runtime state, and monitoring data if the upgrade fails.
- Backing up Cloudera Manager Agent and Server Directories
-
Follow these steps to preserve the Cloudera Manager Agent configuration and the Cloudera Manager Server runtime state.
- Create a top-level backup
directory.
export CM_BACKUP_DIR="`date +%F`-CM" echo $CM_BACKUP_DIR mkdir -p $CM_BACKUP_DIR - Back up the Agent directory and the runtime state.
sudo -E tar -cf $CM_BACKUP_DIR/cloudera-scm-agent.tar --exclude=*.sock /etc/cloudera-scm-agent /etc/default/cloudera-scm-agent /var/run/cloudera-scm-agent /var/lib/cloudera-scm-agent - Back up the Server
directories:
sudo -E tar -cf $CM_BACKUP_DIR/cloudera-scm-server.tar /etc/cloudera-scm-server /etc/default/cloudera-scm-server
- Create a top-level backup
directory.
- Backing up Cloudera Manager Databases
-
Cloudera recommends that you schedule regular backups of the databases that Cloudera Manager uses to store configuration, monitoring, and reporting data. You must also back up databases for any managed services that require them. Choose the procedure corresponding to your database type:
Additional Prerequisites for Rolling Upgrades
Rolling upgrades require specific service configurations to maintain cluster availability while individual hosts are taken offline for maintenance. You must verify that High Availability (HA) is correctly enabled and functional for all critical services across the cluster. This preparation ensures that the workload shifts seamlessly to active nodes, preventing data loss or service outages during the sequential host upgrade process.
Enable and verify High Availability (HA) on all applicable services before starting the rolling upgrade.
