Moving the Cloudera Manager Server to a New Host
You can move the Cloudera Manager Server if either the Cloudera Manager database server or a current backup of the Cloudera Manager database is available.
To move the Cloudera Manager Server:
- Identify a new host on which to install Cloudera Manager.
- Install Cloudera Manager on a new host, using the method described under Install the Cloudera Manager Server Packages.
Important:
- The Cloudera Manager version on the destination host must match the version on the source host.
- Do not install the other components, such as CDH and databases.
- Copy the entire content of /var/lib/cloudera-scm-server/ on the old host to that same path on the new host. Ensure you preserve permissions and all file content.
- If the database server is not available:
- Install the database packages on the host that will host the restored database. This could be the same host on which you have just installed Cloudera Manager or it could be a different host. If you used the embedded PostgreSQL database, install the PostgreSQL package as described in Embedded PostgreSQL Database. If you used an external MySQL, PostgreSQL, or Oracle database, reinstall following the instructions in Cloudera Manager and Managed Service Datastores.
- Restore the backed up databases to the new database installation.
- Update /etc/cloudera-scm-server/db.properties with the database name, database instance name, username, and password.
- Do the following on all cluster hosts:
- In /etc/cloudera-scm-agent/config.ini, update the server_host property to the new hostname.
- If you are replacing the Cloudera Manager database with a new database, and you are not using a backup of the original Cloudera Manager database, delete the /var/lib/cloudera-scm-agent/cm_guid file.
- Restart the agent using the following command:
$ sudo service cloudera-scm-agent restart
- Stop the Cloudera Manager server on the source host by running the following command:
service cloudera-scm-server stop
- Start the Cloudera Manager Server on the new (destination) host. Cloudera Manager should resume functioning as it did before the failure. Because you restored the database from the backup, the server should accept the running state of the Agents, meaning it will not terminate any running processes.
Page generated May 18, 2018.
<< Configuring Cloudera Manager Server Ports | ©2016 Cloudera, Inc. All rights reserved | Managing the Cloudera Manager Server Log >> |
Terms and Conditions Privacy Policy |