Back Up the Cloudera Manager Databases
During the upgrade, Cloudera Manager modifies the schema of the Cloudera Manager database. In case of failures during the upgrade, it may be necessary to rollback to the previous version of Cloudera Manager while addressing the upgrade failures.
When performing a rollback to a previous version, the Cloudera Manager Database must be restored to the previous database schema. For this reason, you must do the Cloudera Manager database backup, so that it can be restored if a rollback is necessary.
- Back up the Cloudera Manager server database as per the instructions provided in your respective database documentation on how to backup and restore the databases.
- Back up All other Cloudera Manager databases - Use the database
information that you collected in a previous step. You may need to
contact your database administrator to obtain the passwords.These databases can include the following:
- Cloudera Manager and Cloudera Management Service
-
Back up the following databases and local datastores used by Cloudera Manager and Cloudera Management Service (CMS) roles:
- Cloudera Manager Server – Contains all the information about services you have configured and their role assignments, all configuration history, commands, users, and running processes. This relatively small database (< 100 MB) is the most important to back up.
- Reports Manager – Tracks disk utilization and processing activities over time. Medium-sized.
- Host Monitor and Service Monitor – These CMS roles do not use a relational database; instead, they store time-series monitoring data in local disk-based datastores that should be included in your host-level backup strategy.
- Cloudera Runtime Services
-
Depending on the services deployed in your Cloudera Runtime 7.1.9 or higher cluster, back up the following service databases:
- Hive Metastore Server – Contains Hive table and partition metadata. Relatively small.
- Hue Server – Contains user account information, job submissions, saved workflows, and Hive/Impala queries. Relatively small.
- Cloudera Data Visualization – Stores dashboard definitions, datasets, visual configurations, and user permissions. Uses an embedded SQLite database by default, or an external relational database (PostgreSQL, MySQL, or MariaDB) in production environments.
- Schema Registry – Contains schemas, schema metadata, versions, and branches (supported on MySQL, PostgreSQL, or Oracle).
- Oozie Server – Contains Oozie workflow, coordinator, and bundle execution data. Can grow very large.
- Additional Cloudera Runtime Service Databases (if deployed)
-
- Ranger Admin – Contains administrative information such as Ranger users, groups, and access policies. Medium-sized.
- Ranger KMS – Stores encrypted keys managed by the Ranger Key Management Service.
- Streams Messaging Manager (SMM) Server – Contains Kafka metadata, metrics, and alert definitions. Relatively small.
- YARN Queue Manager – Stores queue configurations created by YARN
Queue Manager:
-
If you install Cloudera Runtime 7.1.9 CHF 2 or higher, YARN Queue Manager uses an embedded database and does not require an external relational database.
-
If you install Cloudera Runtime 7.1.9 or 7.1.9 CHF 1, YARN Queue Manager requires an external PostgreSQL database. If you upgrade from 7.1.9 or 7.1.9 CHF 1 to CHF 2 or higher, the service continues using your PostgreSQL database and does not migrate back to the embedded database.
-
For more information about the number of databases that should be backed up, and restored if necessary, see Required Databases.
Backing up all Cloudera-related databases prepares your environment for rollback from any
stage of the upgrade process. If an upgrade fails before you restart or upgrade downstream
services, you only need to restore the Cloudera Manager (scm) database.
However, if you already restarted or upgraded services or role instances, you must also
restore their corresponding databases and data directories. For details, see Reverting a Failed Cloudera Manager Upgrade.
