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.
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.
