Enabling debug logging

Raise the log level of a Flink job to DEBUG to get more detail when you troubleshoot it. You can set the log level for one job, and Cloudera SQL Stream Builder (SSB) administrators can set it for all jobs.

The log configuration of a job uses the Log4j 2 properties format. SSB uses the first one that is set:

  1. The custom log configuration of the job
  2. The global log configuration, which SSB administrators set
  3. The built-in default configuration, which logs at the INFO level

A job reads its log configuration when it starts. A change does not affect a job that is already running.

A job-level log configuration applies to jobs in application mode. A job in session mode uses it only if the job is the first one that runs in the session, because the session cluster takes its logging when it starts.

In session mode, the log configuration, the Kubernetes resources, and the autoscaler settings of the first job define the session cluster. SSB ignores these settings for later jobs. After you change the global log configuration, restart the session cluster.

You cannot change the log level of the SSB server from the Streaming SQL Console.