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-11Lines changed: 85 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,34 +33,66 @@ mkdir fluss-quickstart-flink
33
33
cd fluss-quickstart-flink
34
34
```
35
35
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)
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), [fluss-fs-s3 jar](/downloads), and [flink-connector-faker](https://github.com/knaufk/flink-faker/releases)
The Docker Compose environment consists of the following containers:
162
+
- **RustFS:** an S3-compatible object storage for tiered storage. You can access the RustFS console at http://localhost:9001 with credentials `rustfsadmin/rustfsadmin`. An init container (`rustfs-init`) automatically creates the `fluss` bucket on startup.
123
163
- **Fluss Cluster:** a Fluss `CoordinatorServer`, a Fluss `TabletServer` and a `ZooKeeper` server.
164
+
- Snapshot interval `kv.snapshot.interval` is configured as 60 seconds. You may want to configure this differently for production systems
165
+
- Credentials are configured directly with `s3.access-key` and `s3.secret-key`. Production systems should use CredentialsProvider chain specific to cloud environments.
124
166
- **Flink Cluster**: a Flink `JobManager`, a Flink `TaskManager`, and a Flink SQL client container to execute queries.
125
167
126
-
3. To start all containers, run:
168
+
:::tip
169
+
[RustFS](https://github.com/rustfs/rustfs) is used as replacement for S3 in this quickstart example, for your production setup you may want to configure this to use cloud file system. See [here](/maintenance/filesystems/overview.md) for information on how to setup cloud file systems
170
+
:::
171
+
172
+
4. To start all containers, run:
127
173
```shell
128
174
docker compose up -d
129
175
```
130
176
This command automatically starts all the containers defined in the Docker Compose configuration in detached mode.
131
177
132
-
Run
178
+
Run
133
179
```shell
134
180
docker compose ps
135
181
```
136
182
to check whether all containers are running properly.
137
183
138
-
You can also visit http://localhost:8083/ to see if Flink is running normally.
184
+
5. Verify the setup. You can visit http://localhost:8083/ to see if Flink is running normally. The S3 bucket for Fluss tiered storage is automatically created by the `rustfs-init` service. You can access the RustFS console at http://localhost:9001 with credentials `rustfsadmin/rustfsadmin` to view the `fluss` bucket.
139
185
140
186
:::note
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.
187
+
- If you want to additionally use an observability stack, follow one of the provided quickstart guides [here](/docs/maintenance/observability/quickstart.md) and then continue with this guide.
142
188
- All the following commands involving `docker compose` should be executed in the created working directory that contains the `docker-compose.yml` file.
143
189
:::
144
190
@@ -399,6 +445,34 @@ The following SQL query should return an empty result.
399
445
SELECT*FROM fluss_customer WHERE`cust_key`=1;
400
446
```
401
447
448
+
### Quitting Sql Client
449
+
450
+
The following command allows you to quit Flink SQL Client.
451
+
```sql title="Flink SQL"
452
+
quit;
453
+
```
454
+
455
+
### Remote Storage
456
+
457
+
Finally, you can use the following command to view the Primary Key Table snapshot files stored on RustFS:
0 commit comments