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:
The log configuration that you set in the job settings.
The global log configuration that an SSB administrator sets on the
Configuration page.
The built-in default log configuration.
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.
Click the name of the job.
The job opens in the SQL editor.
Click Job Settings, and open the General
tab.
In Execution Mode, select APPLICATION.
The job runs in its own Flink cluster, which separates its logs and resources
from other jobs.
Open the Logging tab, and click Set Log
Configuration.
The log configuration editor opens.
Edit the log configuration.
For example, to troubleshoot Kafka connectivity, set logger.kafka.level
to DEBUG.
From the Job Actions menu, click Save
Job.
Click the Execute job icon.
The job is deployed with the log configuration.
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.