这是一个创建于 121 天前的主题,其中的信息可能已经有所发展或是发生改变。
这个是安装脚本
version: '3'
services:
jobmanager:
image: flink:1.16.1-java8
expose:
- "6123"
ports:
- "8081:8081"
command: jobmanager
volumes:
- ./flink-checkpoints:/opt/flink/flink-checkpoints
- ./flink-savepoints:/opt/flink/flink-savepoints
- ./logs/job:/opt/flink/log
- ./runjob:/opt/flink/usrlib
environment:
JOB_MANAGER_RPC_ADDRESS: jobmanager
TZ: Asia/Shanghai
taskmanager:
image: flink:1.16.1-java8
expose:
- "6121"
- "6122"
depends_on:
- jobmanager
command: taskmanager
volumes:
- ./flink/flink-checkpoints:/opt/flink/flink-checkpoints
- ./flink/flink-savepoints:/opt/flink/flink-savepoints
- ./flink/log/mngr:/opt/flink/log
- ./flink/runjob:/opt/flink/usrlib
links:
- "jobmanager:jobmanager"
environment:
JOB_MANAGER_RPC_ADDRESS: jobmanager
TZ: Asia/Shanghai
2 条回复 • 2024-07-30 16:36:49 +08:00