Create a job to write and run a SQL statement. Each job has a name, the SQL that it
runs, and its own job settings.
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, open the menu of Jobs,
and click New Job.
The Create New Job window opens.
Enter a Job Name, or click Generate Job
Name.
Click Create.
The job opens in a new tab, with an empty SQL editor.
Create the tables that your query needs.
You can use the Kafka or Webhook table workflow, a connector template, or your own
CREATE TABLE statement. For more information, see Creating Flink
DDL tables and Using connector templates.
Enter the SQL query in the SQL editor.
Write the results to a sink table with an INSERT INTO statement. For
example:
INSERT INTO sink_table
SELECT *
FROM source_table
WHERE temperature > 30;
Optional: Optional: To change settings such as parallelism or the
execution mode, click Job Settings.
For more information, see Configuring job settings.
From the Job Actions menu, click Save
Job.
The job and its settings are saved.
The job is listed under Jobs in the Explorer
panel. To run it, see Job execution process.
To undo your edits since the last save, click Revert Changes in the
Job Actions menu.