[appendix]
= Flink
== 安装
[source,bash]
----
# 获取镜像
docker pull flink:1.17.0-java8

# 创建网络
docker network create flink-network

# 启动 JobManager
docker run \
    --rm \
    --name=jobmanager \
    --network flink-network \
    -p 8081:8081 \
    -e FLINK_PROPERTIES="jobmanager.rpc.address: jobmanager" \
    flink:1.17.0-java8 jobmanager

# 启动 TaskManager
docker run \
    --rm \
    --name=taskmanager \
    --network flink-network \
    -e FLINK_PROPERTIES="jobmanager.rpc.address: jobmanager" \
    flink:1.17.0-java8 taskmanager
----