Backing up the Cloudera Manager configuration

Steps to export the Cloudera Manager configuration.

Minimum Required Role: Cluster Administrator (also provided by Full Administrator)

By default, Cloudera Manager redacts sensitive information from the exported configuration JSON file. If you need the ability to restore the Cloudera Manager configuration, you must do one of the following:
  • Disable redaction. The JSON file will contain all the configurations, including sensitive information and can be used to restore the Cloudera Manager configuration.
  • Replace the redacted information. The JSON will contain the word "REDACTED" where sensitive information was redacted. Replace these values with the correct values before restoring the Cloudera Manager configuration.
Exporting the Cloudera Manager Configuration
  1. (Optional) If you want to export the configuration without redaction, you can disable redaction by setting a JVM parameter:
    1. Log in the Cloudera Manager server host using ssh.
    2. Edit the /etc/default/cloudera-scm-server file by adding the following property (separate each property with a space) to the line that begins with export CMF_JAVA_OPTS.
      -Dcom.cloudera.api.redaction=false
      For example:
      export CMF_JAVA_OPTS="-Xmx2G -Dcom.cloudera.api.redaction=false"
    3. Restart Cloudera Manager Server:
      sudo systemctl restart cloudera-scm-server
  2. Export the Cloudera Manager configuration:
    1. Log in to a host that has network access to the Cloudera Manager server host using ssh.
    2. Run the following command:
      # curl -u admin_uname:admin_pass "http://cm_server_host:7180/api/v51/cm/deployment" >
      path_to_file/cm-deployment.json
      Where:
      • admin_uname is a username with either the Full Administrator or Cluster Administrator role.
      • admin_pass is the password for the admin_uname username.
      • cm_server_host is the hostname of the Cloudera Manager server.
      • path_to_file is the path to the file where you want to save the configuration.