Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to enable debug logging for Cloudera Manager server

How to enable debug logging for Cloudera Manager server

Expert Contributor

What changes do i need to make in /etc/cloudera-scm-server/  to view debug logs. 


Re: How to enable debug logging for Cloudera Manager server

Super Guru



There are a few ways to enable DEBUG or TRACE depending on what sort of problem you are attempting to troubleshoot.




If CM won't start or if there is a problem where you do not have an idea what classes are involved, you can enable DEBUG or TRACE for the whole server.  Warning:  this can be very very verbose, so it is likely going to be difficult to capture an event.


- Edit /usr/sbin/cmf-server in CM 5--- Edit /opt/cloudera/cm/bin/cm-server in CM 6

- Change this:





Restart CM to have the change apply.




If you know what class or package you want to DEBUG, you can edit /etc/cloudera-scm-server/


Add lines as follows... this is an example of turning on debugging for just ldap classes in SpringFramework (used in LDAP authentication):


Restart CM to have the changes apply




If you want to turn on some debug or trace level logging for just the current session of Cloudera Manager, you can use the debug page:




- Choose the Logger from the drop-down

- Select the level to which you want to change the logging

- Click "Submit Query" button to apply


The log level you selected will only apply until you restart Cloudera Manager




API debugging.


You can enable API debugging in the Cloudera Manager interface:


- Navigate to: Administration --> Settings

- Search for Enable Debugging of API

- Check the box next to it and Save


API debugging will be written to the /var/log/cloudra-scm-server/cloudera-scm-server.log file without restart.






If you do enable verbose debugging, you may need to increase the size of log files or the number to be able to review relevant lines.  To do so, I believe you can simply edit the following in /etc/cloudera-scm-server/