使用docker-compose搭建flink集群
作者:互联网
第一步:安装docker和docker-compose并赋予权限
第二步:利用docker-compose构建容器
1 version: "2.1" 2 services: 3 jobmanager: 4 image: flink:1.9.2-scala_2.12 5 expose: 6 - "6123" 7 ports: 8 - "8081:8081" 9 command: jobmanager 10 environment: 11 - JOB_MANAGER_RPC_ADDRESS=jobmanager 12 13 taskmanager: 14 image: flink:1.9.2-scala_2.12 15 expose: 16 - "6121" 17 - "6122" 18 depends_on: 19 - jobmanager 20 command: taskmanager 21 links: 22 - "jobmanager:jobmanager" 23 environment: 24 - JOB_MANAGER_RPC_ADDRESS=jobmanagerflink.yaml
第三步:访问web界面
标签:compose,image,flink,jobmanager,1.9,docker 来源: https://www.cnblogs.com/demoduan/p/16649681.html