Managing Cloudera Manager Server Logs

You can use the Cloudera Manager Server logs to troubleshoot problems with Cloudera Manager .

Viewing the Cloudera Manager Server Logs

To help you troubleshoot problems, you can view the Cloudera Manager Server log. You can view the logs in the Logs page or in specific pages for the log.

  1. In the left menu, click Diagnostics > Logs.
  2. Next to Sources, select the Cloudera Manager Server checkbox and deselect the other options.
  3. Adjust the search criteria and click Search.
You can also view the raw Cloudera Manager Server log by logging in to the Cloudera Manager Server host and view the /var/log/cloudera-scm-server/cloudera-scm-server.log file.

Setting the Cloudera Manager Server Log Location

You can set the location of the Cloudera Manager Server log.

  1. Stop the Cloudera Manager Server:
    sudo service cloudera-scm-server stop
  2. Set the CMF_VAR environment variable in /etc/default/cloudera-scm-server to the new parent directory:
    export CMF_VAR=/opt
  3. Create log/cloudera-scm_server and run directories in the new parent directory and set the owner and group of all directories to cloudera-scm. For example, if the new parent directory is /opt/, do the following:
    sudo su
    cd /opt
    mkdir log
    chown cloudera-scm:cloudera-scm log
    mkdir /opt/log/cloudera-scm-server
    chown cloudera-scm:cloudera-scm log/cloudera-scm-server
    mkdir run
    chown cloudera-scm:cloudera-scm run
  4. Restart the Cloudera Manager Server:
    sudo service cloudera-scm-server start