Managing Cloudera Manager Server and Agent Logs

Viewing Logs

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

Viewing Cloudera Manager Server and Agent Logs in the Logs Page

  1. Select Diagnostics > Logs on the top navigation bar.
  2. Click Select Sources to display the log source list.
  3. Uncheck the All Sources checkbox.
  4. Check the Cloudera Manager checkbox to view both Agent and Server logs, or click to the left of Cloudera Manager, and check either the Agent or Server checkbox.
  5. Click Search.
For more information about the Logs page, see Logs.

Viewing the Cloudera Manager Server Log

  1. Select Diagnostics > Server Log on the top navigation bar.

Viewing the Cloudera Manager Agent Log

  1. Click the Hosts tab.
  2. Click the link for the host where you want to see the Agent log.
  3. In the Details panel, click the Details link in the Host Agent field.
  4. Click the Agent Log link.

Configuring Log Locations

Setting the Cloudera Manager Server Log Location

By default the Cloudera Manager Server log is stored in /var/log/cloudera-scm-server/. If there is not enough space in that directory, you can change the location of the parent of the log directory:
  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

Setting the Cloudera Manager Agent Log Location

By default the Cloudera Manager Agent log is stored in /var/log/cloudera-scm-agent/. If there is not enough space in that directory, you can change the location of the log file:
  1. Set the log_file property in the Cloudera Manager Agent configuration file:
    log_file=/opt/log/cloudera-scm-agent/cloudera-scm-agent.log
  2. Create log/cloudera-scm_agent directories and set the owner and group to cloudera-scm. For example, if the log is stored in /opt/log/cloudera-scm-agent, do the following:
    $ sudo su
    $ cd /opt
    $ mkdir log
    $ chown cloudera-scm:cloudera-scm log
    $ mkdir /opt/log/cloudera-scm-agent
    $ chown cloudera-scm:cloudera-scm log/cloudera-scm-agent
  3. Restart the Agent:
    $ sudo service cloudera-scm-agent restart