You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/quickstart/flink.md
+85-18Lines changed: 85 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,8 +33,19 @@ mkdir fluss-quickstart-flink
33
33
cd fluss-quickstart-flink
34
34
```
35
35
36
-
2. Create a `docker-compose.yml` file with the following content:
36
+
2. Create a `lib` directory and download the required jar files. You can adjust the Flink version as needed. Please make sure to download the compatible versions of [fluss-flink connector jar](/downloads) and [flink-connector-faker](https://github.com/knaufk/flink-faker/releases)
The Docker Compose environment consists of the following containers:
96
123
-**Fluss Cluster:** a Fluss `CoordinatorServer`, a Fluss `TabletServer` and a `ZooKeeper` server.
97
-
-**Flink Cluster**: a Flink `JobManager` and a Flink `TaskManager` container to execute queries.
98
-
99
-
**Note:** The `apache/fluss-quickstart-flink` image is based on [flink:1.20.1-java17](https://hub.docker.com/layers/library/flink/1.20-java17/images/sha256:bf1af6406c4f4ad8faa46efe2b3d0a0bf811d1034849c42c1e3484712bc83505) and
100
-
includes the [fluss-flink](engine-flink/getting-started.md) and
101
-
[flink-connector-faker](https://flink-packages.org/packages/flink-faker) to simplify this guide.
124
+
-**Flink Cluster**: a Flink `JobManager`, a Flink `TaskManager`, and a Flink SQL client container to execute queries.
102
125
103
126
3. To start all containers, run:
104
127
```shell
@@ -116,7 +139,6 @@ You can also visit http://localhost:8083/ to see if Flink is running normally.
116
139
117
140
:::note
118
141
- If you want to additionally use an observability stack, follow one of the provided quickstart guides [here](maintenance/observability/quickstart.md) and then continue with this guide.
119
-
- If you want to run with your own Flink environment, remember to download the [fluss-flink connector jar](/downloads), [flink-connector-faker](https://github.com/knaufk/flink-faker/releases) and then put them to `FLINK_HOME/lib/`.
120
142
- All the following commands involving `docker compose` should be executed in the created working directory that contains the `docker-compose.yml` file.
121
143
:::
122
144
@@ -125,25 +147,70 @@ Congratulations, you are all set!
125
147
## Enter into SQL-Client
126
148
First, use the following command to enter the Flink SQL CLI Container:
127
149
```shell
128
-
docker compose exec jobmanager ./sql-client
150
+
docker compose run sql-client
129
151
```
130
152
131
-
**Note**:
132
-
To simplify this guide, three temporary tables have been pre-created with `faker` connector to generate data.
133
-
You can view their schemas by running the following commands:
153
+
To simplify this guide, we will create three temporary tables with `faker` connector to generate data:
0 commit comments