flink集群方式-Standalone模式

1、节点规划

JobManager: 192.168.23.151

TaskManager:192.168.23.152

TaskManager:192.168.23.153

TaskManager:192.168.23.154

2、安装配置

1)首先在一台机器上安装flink,参考flink本地开发环境安装与部署(单机)

2)修改flink-conf.yaml

vi flink-1.13.0/conf/flink-conf.yaml
jobmanager.rpc.address: 192.168.23.151(这一行修改成机器IP)

3)修改master

vi flink-1.13.0/conf/masters
192.168.23.151:8081(内容是JobManager的IP:端口)

4)修改workers

vi flink-1.13.0/conf/workers
192.168.23.152(内容是3个TaskManager的IP)
192.168.23.153
192.168.23.154

5)将151节点安装配置好的flink复制到其它3台机器

scp -r ./flink-1.13.0 192.168.23.152://usr/local/myroom/
scp -r ./flink-1.13.0 192.168.23.153://usr/local/myroom/
scp -r ./flink-1.13.0 192.168.23.154://usr/local/myroom/

3、部署测试

1)启动

start-cluster.sh

2)部署,参考flink本地开发环境安装与部署(单机)

3)测试,参考flink本地开发环境安装与部署(单机)

4)页面展示

你可能想看:
分享给朋友: