Set a custom log configuration for one job to raise its log level to DEBUG, for all of
Flink or for one connector.
-
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.
-
In the Explorer, click the job.
The job opens in the SQL editor.
-
Click Job Settings.
-
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.
-
Click the Logging tab.
-
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.
-
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.
-
Click Save Job.
-
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.