本文分为两步:
1、docker安装部署Flink1.10
2、基于flink1.10安装FlinkX
一、docker安装Flink1.10
首先通过docker安装Flink1.10
创建文件docker-compose.yml
vim docker-compose.yml
将以下内容复制到文件中,#后的为注释,删掉
version: "2.1"
services:
jobmanager:
image: flink:1.10.0-scala_2.11
expose:
- "6123"
ports:
# 9016是宿主机暴露端口,8081是容器端口
- "9016:8081"
command: jobmanager
environment:
- JOB_MANAGER_RPC_ADDRESS=jobmanager
taskmanager:
image: flink:1.10.0-scala_2.11
expose:
- "6121"
- "6122"
depends_on:
- jobmanager
command: taskmanager
links:
- "jobmanager:jobmanager"
environment:
- JOB_MANAGER_RPC_ADDRESS=jobmanager
然后执行
docker-compose up -d
日志如下:
Recreating flinkdocker_jobmanage