Cette page n'est pas encore disponible dans votre langue. Nous nous efforçons d'ajouter d'autres langues. Nous vous remercions de votre compréhension.

On this page

Show all

Debugging and Running an Application in Linux

Updated on 2022-09-14 GMT+08:00

After the preparation in Linux Environment is complete, enter the following CQL statements in the CQL command line interface of the Linux client:

>CREATE INPUT STREAM s
>    (id INT, name STRING, type INT)
> SOURCE randomgen
>           PROPERTIES
>           ( "timeUnit" = "SECONDS", "period" = "1",
>           "eventNumPerPeriod" = "1", "isSchedule" = "true");
Streaming>
>CREATE OUTPUT STREAM rs
>(type INT, cc INT)
> SINK ConsoleOutput;
Streaming>
>INSERT INTO STREAM rs SELECT type, count(id) as cc FROM s[RANGE 20 SECONDS BATCH] WHERE id > 5 GROUP BY type;
Streaming>
>SUBMIT APPLICATION example;
Streaming>show applications;

Figure 1 shows the running results.

Figure 1 Running result
Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback