2022-08-14 15:53:28 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2022-09-17 11:06:19 +00:00
|
|
|
#docker pull flink:scala_2.12-java8
|
|
|
|
# docker pull flink:1.15-scala_2.12-java8
|
2022-08-14 15:53:28 +00:00
|
|
|
|
|
|
|
docker stop jobmanager
|
|
|
|
docker rm jobmanager
|
|
|
|
docker stop taskmanager
|
|
|
|
docker rm taskmanager
|
|
|
|
|
|
|
|
FLINK_PROPERTIES="jobmanager.rpc.address: jobmanager"
|
|
|
|
|
|
|
|
docker run -dit --name="jobmanager" \
|
2022-09-17 11:06:19 +00:00
|
|
|
--detach -p 8081:8081 \
|
2022-08-14 15:53:28 +00:00
|
|
|
--env FLINK_PROPERTIES="${FLINK_PROPERTIES}" \
|
2022-09-17 11:06:19 +00:00
|
|
|
flink:1.15-scala_2.12-java8 jobmanager
|
2022-08-14 15:53:28 +00:00
|
|
|
|
|
|
|
docker run -dit --name="taskmanager" \
|
2022-09-17 11:06:19 +00:00
|
|
|
--detach \
|
2022-08-14 15:53:28 +00:00
|
|
|
--env FLINK_PROPERTIES="${FLINK_PROPERTIES}" \
|
2022-09-17 11:06:19 +00:00
|
|
|
flink:1.15-scala_2.12-java8 taskmanager
|