Run a test job to confirm that Cloudera SQL Stream Builder (SSB) can start
Flink jobs on the compute cluster. The test job reads generated rows with the Datagen connector
and discards them with the Blackhole connector. It needs no external data
source.
The Cloudera Streaming Analytics engine instance has the Running status. To check the status, look at the status icon next to the instance in the left navigation pane or at the Engine Status column of the Deployed Engines tab. Both show the same status.
-
Open the Anywhere Cloud Console.
-
In the left navigation pane, click Streaming Analytics.
-
Select the Cloudera Streaming Analytics engine instance of your
deployment.
The Streaming SQL Console opens.
-
Create a project.
For more information, see Creating
a project.
-
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.
-
Enter the following statements in the SQL editor:
CREATE TABLE smoke_test_source (
id BIGINT,
message STRING
) WITH (
'connector' = 'datagen',
'rows-per-second' = '1'
);
CREATE TABLE smoke_test_sink (
id BIGINT,
message STRING
) WITH (
'connector' = 'blackhole'
);
-
Click the Execute job icon.
SSB creates the two tables.
-
Replace the statements in the SQL editor with the following statement:
INSERT INTO smoke_test_sink SELECT id, message FROM smoke_test_source;
-
Click the Execute job icon.
SSB starts the job. After a short time, the job status changes to Running.
-
When you have finished, click Stop job.
A running test job confirms that SSB can start jobs on the compute cluster. For a job with more
explanation, see Running a job with generated data. For more information
about the connectors, see Datagen
connector and Blackhole connector.