-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose-flex-community.yml
161 lines (155 loc) · 5.75 KB
/
compose-flex-community.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
services:
flex:
image: factorhouse/flex-ce:latest
container_name: flex-ce
pull_policy: always
restart: always
ports:
- "3001:3000"
networks:
- factorhouse
depends_on:
jobmanager:
condition: service_healthy
env_file:
- resources/flex/config/local-community.env
mem_limit: 2G
volumes:
- ./resources/flex/jaas:/etc/flex/jaas
- ./resources/flex/rbac:/etc/flex/rbac
jobmanager:
image: factorhouse/flink
container_name: jobmanager
pull_policy: never
command: jobmanager
ports:
- "8082:8081"
networks:
- factorhouse
environment:
- |
FLINK_PROPERTIES=
jobmanager.rpc.address: jobmanager
state.backend: filesystem
state.checkpoints.dir: file:///tmp/flink-checkpoints
state.savepoints.dir: file:///tmp/flink-savepoints
heartbeat.interval: 1000
heartbeat.timeout: 5000
rest.port: 8081
rest.bind-address: 0.0.0.0
rest.flamegraph.enabled: true
web.backpressure.refresh-interval: 10000
volumes:
- ./resources/flex/jar/connector:/tmp/connector
- ./resources/flex/jar/lib/iceberg-flink-runtime-1.20-1.8.1.jar:/opt/flink/lib/iceberg-flink-runtime-1.20-1.8.1.jar
- ./resources/flex/jar/lib/iceberg-aws-bundle-1.8.1.jar:/opt/flink/lib/iceberg-aws-bundle-1.8.1.jar
- ./resources/flex/jar/plugin/flink-s3-fs-hadoop-1.20.1.jar:/opt/flink/plugins/s3-fs-hadoop/flink-s3-fs-hadoop-1.20.1.jar
- ./resources/flex/jar/plugin/flink-s3-fs-presto-1.20.1.jar:/opt/flink/plugins/s3-fs-presto/flink-s3-fs-presto-1.20.1.jar
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8081/config"]
interval: 5s
timeout: 5s
retries: 5
taskmanager-1:
image: factorhouse/flink
container_name: taskmanager-1
pull_policy: never
command: taskmanager
networks:
- factorhouse
depends_on:
jobmanager:
condition: service_healthy
environment:
- |
FLINK_PROPERTIES=
jobmanager.rpc.address: jobmanager
taskmanager.numberOfTaskSlots: 10
state.backend: filesystem
state.checkpoints.dir: file:///tmp/flink-checkpoints
state.savepoints.dir: file:///tmp/flink-savepoints
heartbeat.interval: 1000
heartbeat.timeout: 5000
volumes:
- ./resources/flex/jar/connector:/tmp/connector
- ./resources/flex/jar/lib/iceberg-flink-runtime-1.20-1.8.1.jar:/opt/flink/lib/iceberg-flink-runtime-1.20-1.8.1.jar
- ./resources/flex/jar/lib/iceberg-aws-bundle-1.8.1.jar:/opt/flink/lib/iceberg-aws-bundle-1.8.1.jar
- ./resources/flex/jar/plugin/flink-s3-fs-hadoop-1.20.1.jar:/opt/flink/plugins/s3-fs-hadoop/flink-s3-fs-hadoop-1.20.1.jar
- ./resources/flex/jar/plugin/flink-s3-fs-presto-1.20.1.jar:/opt/flink/plugins/s3-fs-presto/flink-s3-fs-presto-1.20.1.jar
taskmanager-2:
image: factorhouse/flink
container_name: taskmanager-2
pull_policy: never
command: taskmanager
networks:
- factorhouse
depends_on:
jobmanager:
condition: service_healthy
environment:
- |
FLINK_PROPERTIES=
jobmanager.rpc.address: jobmanager
taskmanager.numberOfTaskSlots: 10
state.backend: filesystem
state.checkpoints.dir: file:///tmp/flink-checkpoints
state.savepoints.dir: file:///tmp/flink-savepoints
heartbeat.interval: 1000
heartbeat.timeout: 5000
volumes:
- ./resources/flex/jar/connector:/tmp/connector
- ./resources/flex/jar/lib/iceberg-flink-runtime-1.20-1.8.1.jar:/opt/flink/lib/iceberg-flink-runtime-1.20-1.8.1.jar
- ./resources/flex/jar/lib/iceberg-aws-bundle-1.8.1.jar:/opt/flink/lib/iceberg-aws-bundle-1.8.1.jar
- ./resources/flex/jar/plugin/flink-s3-fs-hadoop-1.20.1.jar:/opt/flink/plugins/s3-fs-hadoop/flink-s3-fs-hadoop-1.20.1.jar
- ./resources/flex/jar/plugin/flink-s3-fs-presto-1.20.1.jar:/opt/flink/plugins/s3-fs-presto/flink-s3-fs-presto-1.20.1.jar
taskmanager-3:
image: factorhouse/flink
container_name: taskmanager-3
pull_policy: never
command: taskmanager
networks:
- factorhouse
depends_on:
jobmanager:
condition: service_healthy
environment:
- |
FLINK_PROPERTIES=
jobmanager.rpc.address: jobmanager
taskmanager.numberOfTaskSlots: 10
state.backend: filesystem
state.checkpoints.dir: file:///tmp/flink-checkpoints
state.savepoints.dir: file:///tmp/flink-savepoints
heartbeat.interval: 1000
heartbeat.timeout: 5000
volumes:
- ./resources/flex/jar/connector:/tmp/connector
- ./resources/flex/jar/lib/iceberg-flink-runtime-1.20-1.8.1.jar:/opt/flink/lib/iceberg-flink-runtime-1.20-1.8.1.jar
- ./resources/flex/jar/lib/iceberg-aws-bundle-1.8.1.jar:/opt/flink/lib/iceberg-aws-bundle-1.8.1.jar
- ./resources/flex/jar/plugin/flink-s3-fs-hadoop-1.20.1.jar:/opt/flink/plugins/s3-fs-hadoop/flink-s3-fs-hadoop-1.20.1.jar
- ./resources/flex/jar/plugin/flink-s3-fs-presto-1.20.1.jar:/opt/flink/plugins/s3-fs-presto/flink-s3-fs-presto-1.20.1.jar
sql-gateway:
image: factorhouse/flink
container_name: sql-gateway
pull_policy: never
command: >
bin/sql-gateway.sh
start-foreground
-Dsql-gateway.endpoint.rest.address=0.0.0.0
-Dsql-gateway.endpoint.rest.port=9090
-Djobmanager.rpc.address=jobmanager
-Drest.address=jobmanager
ports:
- "9090:9090"
networks:
- factorhouse
depends_on:
jobmanager:
condition: service_healthy
environment:
- FLINK_SQL_GATEWAY_DEFAULT_CATALOG_NAME=default_catalog
- FLINK_SQL_GATEWAY_DEFAULT_DATABASE_NAME=default_database
networks:
factorhouse:
external: ${USE_EXT:-true}
name: factorhouse