Backing up Cloudera Manager
Minimum Required Role: Cluster Administrator (also provided by Full Administrator)
The following steps create a complete backup of Cloudera Manager:
- Stop the Cloudera Management Service using Cloudera Manager:
- Select .
- Select .
- Stop the Cloudera Manager Server by running the following command on the Cloudera Manager Server host:
sudo service cloudera-scm-server stop
- If you are using the embedded PostgreSQL database for Cloudera Manager, stop the database:
sudo service cloudera-scm-server-db stop
- On the host where Cloudera Manager Server is running, back up the /etc/cloudera-scm-server/db.properties file.
- On the host where each role is running, back up the following directories whose location is stored in the properties shown in the table. The default location is also shown.
Cloudera Management Service Directories to Back Up Role Property Default Location Event Server Event Server Index Directory /var/lib/cloudera-scm-eventserver Host Monitor Host Monitor Storage Directory /var/lib/cloudera-host-monitor Navigator Metadata Server Navigator Metadata Server Storage Dir /var/lib/cloudera-scm-navigator Reports Manager Reports Manager Working Directory /var/lib/cloudera-scm-headlamp Service Monitor Service Monitor Storage Directory /var/lib/cloudera-service-monitor - Back up the /etc/cloudera-scm-agent/config.ini file on each host in the cluster.
- Back up the following Cloudera Manager-related databases; see Backing up Databases:
- Cloudera Manager Server
- Activity Monitor (depending on your deployment, this role may not exist)
- Reports Manager
- Navigator Audit Server
- Navigator Metadata Server
- Start Cloudera Manager Server by running the following command on the Cloudera Manager Server host:
sudo service cloudera-scm-server start
- Start the Cloudera Management Service using Cloudera Manager:
- Select .
- Select .
Backing up Databases
Several steps in the backup procedures require you to back up various databases used in a CDH cluster. The steps for backing up and restoring databases differ depending on the database vendor and version you select for your cluster and are beyond the scope of this document.
See the following vendor resources for more information:
- MariaDB 5.5: http://mariadb.com/kb/en/mariadb/backup-and-restore-overview/
- MySQL 5.5: http://dev.mysql.com/doc/refman/5.5/en/backup-and-recovery.html
- MySQL 5.6: http://dev.mysql.com/doc/refman/5.6/en/backup-and-recovery.html
- PostgreSQL 8.4: https://www.postgresql.org/docs/8.4/static/backup.html
- PostgreSQL 9.2: https://www.postgresql.org/docs/9.2/static/backup.html
- PostgreSQL 9.3: https://www.postgresql.org/docs/9.3/static/backup.html
- Oracle 11gR2: http://docs.oracle.com/cd/E11882_01/backup.112/e10642/toc.htm