Configuring custom job logging

You can set a log configuration for a single job, for example to raise the log level of a connector while you troubleshoot. Cloudera SQL Stream Builder (SSB) applies the log configuration when the job starts.

SSB selects the log configuration in this order:

  1. The log configuration that you set in the job settings.
  2. The global log configuration that an SSB administrator sets on the Configuration page.
  3. The built-in default log configuration.
  1. In the Streaming SQL Console, click Projects in the left navigation pane, and click the name of your project.
    The project opens, with the Explorer panel on the left. To open the Streaming SQL Console, see Accessing Cloudera SQL Stream Builder.
  2. Click the name of the job.
    The job opens in the SQL editor.
  3. Click Job Settings, and open the General tab.
  4. In Execution Mode, select APPLICATION.
    The job runs in its own Flink cluster, which separates its logs and resources from other jobs.
  5. Open the Logging tab, and click Set Log Configuration.
    The log configuration editor opens.
  6. Edit the log configuration.
    For example, to troubleshoot Kafka connectivity, set logger.kafka.level to DEBUG.
  7. From the Job Actions menu, click Save Job.
  8. Click the Execute job icon.
    The job is deployed with the log configuration.
  9. To check the log output, click the Flink icon in the toolbar of the SQL editor, and open Task Managers and then Logs.
    The logs display the log levels that you set.

For more ways to find logs, see Enabling debug logging and Using the Flink Dashboard.