Enabling DEBUG

DEBUG is available for the Hue Django logs in /var/log/hue. By default, the Hue service writes INFO level messages and keeps a small buffer of log messages at all levels in memory.

In the debug mode, Django displays a detailed traceback when an exception occurs. Debugging information may contain sensitive data.

You can enable DEBUG messages for all the logs in var/log/hue from Cloudera Manager or from the Hue web UI.

Using Cloudera Manager

  1. Go to Cloudera Manager > Clusters > Hue > Configuration.
  2. Select the Enable Django Debug Mode option.
  3. Click Save Changes.
  4. Restart the Hue service.

Using the Hue web interface

  1. Log into the Hue web interface as a superuser.
  2. Click Administer Server from the left-assist pannel.

    About Hue page is displayed.

  3. Click on the Server Logs tab.
  4. Select the Force DEBUG level option.

    Debug is enabled on-the-fly.