Insert a CREATE TABLE template for a connector into the SQL editor, and edit its
values to create a table. The template contains the mandatory properties, and the optional
properties as comments with their default values and a short description.
Ensure that you know the connection details of the system, such as broker addresses or a
database URL.
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.
Optional: To create a table from the columns of an existing query, enter the query in the SQL
editor.
The template then uses the columns and the name of the query result. If the editor
is empty, the template contains the columns col_str,
col_int, and col_ts, and a watermark on
col_ts.
In the toolbar of the SQL editor, open the Templates
menu.
Click the connector type that you need.
For the types that support several data formats, the menu contains one entry for each
format. The format is displayed as a tag next to the type, for example
kafka with json.
The CREATE TABLE statement is displayed in the SQL editor,
above your own text. The table name starts with the connector type, followed by a
number.
Replace the placeholder values of the mandatory properties, and rename the table and
the columns.
A value of ... is a placeholder that you must replace.
Optional: To use an optional property, remove the two dashes at the start of its line, and set
its value.
Click the Execute job icon.
The Logs tab displays the result of the
statement.
For the properties of each connector, see Kafka connector, JDBC
connector, CDC connectors, Filesystem connector,
Datagen connector, Faker connector, and Blackhole
connector. The webhook connector has no template; see Creating a webhook
sink. For other ways to create tables, see Creating Flink DDL
tables.