Skip to content

Commit 1497dc6

Browse files
committed
nit
1 parent c9563a2 commit 1497dc6

File tree

1 file changed

+22
-14
lines changed

1 file changed

+22
-14
lines changed

website/docs/quickstart/flink.md

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -121,17 +121,17 @@ You can also visit http://localhost:8083/ to see if Flink is running normally.
121121

122122
Congratulations, you are all set!
123123

124-
If you want to run with your own Flink environment, you can follow the following instructions.
124+
If you want to run with your own Flink environment, you can follow the steps below.
125125

126-
1. Download the desired Flink version (The following example takes Apache Flink 1.20.3 as an example.)
126+
1. Create a `lib` directory. Download [fluss-flink connector jar](/downloads), [flink-connector-faker](https://github.com/knaufk/flink-faker/releases) and then put them to `lib`.
127+
128+
2. Set the desired Flink version. For example:
127129

128130
```shell
129-
wget https://dlcdn.apache.org/flink/flink-1.20.3/flink-1.20.3-bin-scala_2.12.tgz; tar -zxvf flink-1.20.3-bin-scala_2.12.tgz
131+
export FLINK_VERSION=1.20.3
130132
```
131133

132-
1. Download [fluss-flink connector jar](/downloads), [flink-connector-faker](https://github.com/knaufk/flink-faker/releases) and then put them to `flink-1.20.3/lib/`.
133-
134-
2. Create a `docker-compose.yml` file with the following content:
134+
3. Create a `docker-compose.yml` file with the following content:
135135

136136
```yaml
137137
services:
@@ -165,23 +165,31 @@ services:
165165
image: zookeeper:3.9.2
166166
#end
167167
#begin Flink cluster
168-
flink-standalone:
169-
image: apache/fluss:0.8.0-incubating
168+
jobmanager:
169+
image: apache/flink:${FLINK_VERSION}
170170
ports:
171171
- "8083:8081"
172-
command: sh -c "/opt/flink/bin/start-cluster.sh"
172+
command: jobmanager
173173
environment:
174174
- |
175175
FLINK_PROPERTIES=
176-
jobmanager.rpc.address: flink-standalone
177-
rest.address: flink-standalone
178-
rest.bind-address: 0.0.0.0
176+
jobmanager.rpc.address: jobmanager
177+
volumes:
178+
- ./lib:/tmp/lib
179+
taskmanager:
180+
image: apache/flink:${FLINK_VERSION}
181+
depends_on:
182+
- jobmanager
183+
command: taskmanager
184+
environment:
185+
- |
186+
FLINK_PROPERTIES=
187+
jobmanager.rpc.address: jobmanager
179188
taskmanager.numberOfTaskSlots: 10
180189
taskmanager.memory.process.size: 2048m
181190
taskmanager.memory.framework.off-heap.size: 256m
182191
volumes:
183-
- shared-tmpfs:/tmp/iceberg
184-
- ./flink-1.20.3:/opt/flink
192+
- ./lib:/tmp/lib
185193
#end
186194
```
187195

0 commit comments

Comments
 (0)