Job execution process

When you run a job, Cloudera SQL Stream Builder (SSB) checks the SQL and then deploys it as a Flink job on Kubernetes. The job keeps running until you stop it.

Running a job has two phases:

Parse
SSB checks that the SQL is valid, and compares it with the schemas of the tables that it uses for correct types and columns.
Execution
If parsing succeeds, SSB creates the Flink job through the Flink Kubernetes Operator. In session mode, the job runs in your session cluster as a Flink session job. In application mode, the job runs in its own Flink cluster. The number of slots that the job uses equals its parallelism setting. The default is one slot.
  • Define the tables and catalogs that your SQL uses, for example with Flink DDL.
  • Register a Kafka data source if your tables read from Kafka.
  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 panel, click the name of the job.
    The job opens in the SQL editor.
  3. Click the Execute job icon.
    The job status changes while the job is deployed. The Logs tab displays the status updates of SSB.
  4. Optional: Optional: Click the Events tab to review the events of the job.
  5. Optional: Optional: To open the Flink Dashboard of the running job, click the Flink icon in the toolbar of the SQL editor.
    The icon has no label, and it is displayed only while the job is running. For more information, see Using the Flink Dashboard.

A job runs your SQL continuously over the stream of data. It writes the results to the sinks that you set in INSERT statements.

To run only part of the SQL in the editor, select the statement and click Execute Selection.