Skip to content

Commit

Permalink
HZC-5773 Updates to kafka materialized view tutorial (#144)
Browse files Browse the repository at this point in the history
* HZC-5773 Updates to kafka materialized view tutorial

* Fix CLC docs repo URL

---------

Co-authored-by: Serdar Ozmen <[email protected]>
  • Loading branch information
pmcgleenon and Serdaro authored Apr 12, 2024
1 parent 1a93d62 commit e95af0d
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ clc version
----
+
You should see your installed version of the Hazelcast CLC client.
. In the *Quick Connection Guide*, go to step 2 and run the `clc config import` command to import the configuration of your {hazelcast-cloud} cluster.
. Now execute the following command to connect the Hazelcast CLC to your cluster. Replace the placeholder `$CLUSTER_ID` with your cluster ID. You can find the cluster ID on the dashboard of your cluster under *Cluster Details*.
. Navigate to the Cluster Details page on the Viridian UI which shows the Client Connect options. Choose `CLI` and run the `clc config import` command to import the configuration of your {hazelcast-cloud} cluster.
. Now execute the following command to connect the Hazelcast CLC to your cluster. Replace the placeholder `$CLUSTER_NAME` with your cluster name. You can find the cluster name on the dashboard of your cluster under *Cluster Details*.
+
```bash
clc -c pr-$CLUSTER_ID
clc -c $CLUSTER_NAME
```
+
A CLC prompt is displayed:
+
```
pr-$CLUSTER_ID>
$CLUSTER_NAME...SQL>
```
+
The Hazelcast CLC client is successfully connected to your cluster ready for later steps in this tutorial.
Expand Down Expand Up @@ -114,6 +114,7 @@ OPTIONS (
'session.timeout.ms'='45000'
);
----
TIP: The `sasl.jaas.config` entry must be terminated by a semi-colon.
+
The `trades` topic accepts trades in JSON format, using the following schema:
+
Expand All @@ -139,7 +140,7 @@ INSERT INTO trades VALUES
. If you haven't started the CLC prompt on your {hazelcast-cloud} cluster, do it now:
+
```bash
clc -c pr-$CLUSTER_ID
clc -c $CLUSTER_NAME
```

. In the CLC prompt, write a streaming query that filters trade messages, where the total trade order is more than $100.
Expand Down

0 comments on commit e95af0d

Please sign in to comment.