Enabling debug logging for one job

Set a custom log configuration for one job to raise its log level to DEBUG, for all of Flink or for one connector.

  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. In the Explorer, click the job.
    The job opens in the SQL editor.
  3. Click Job Settings.
  4. On the General tab, in Execution Mode, select APPLICATION.
    A job in session mode uses its log configuration only if it is the first job that runs in the session.
  5. Click the Logging tab.
  6. Click Set Log Configuration.
    The editor opens. The global log configuration, or the built-in default if no global configuration is set, is displayed next to your copy that you edit.
  7. Add the following lines:
    logger.flink.name = org.apache.flink
    logger.flink.level = DEBUG

    To get debug logs from a connector instead of all of Flink, use the package of the connector as the logger name, for example org.apache.flink.connector.kafka.

  8. Click Save Job.
  9. Restart the job.
    The job uses the new log configuration when it starts. For more information, see Restarting a job.

For more information about the log configuration of a job, see Configuring custom job logging.