Creating a job

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.

  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, open the menu of Jobs, and click New Job.
    The Create New Job window opens.
  3. Enter a Job Name, or click Generate Job Name.
  4. Click Create.
    The job opens in a new tab, with an empty SQL editor.
  5. 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.
  6. 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;
  7. Optional: Optional: To change settings such as parallelism or the execution mode, click Job Settings.
    For more information, see Configuring job settings.
  8. 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.