部署模式一:
standalone模式:
规划:185-187三台centos7主机,185作为JobManager,186和187作为TastManager
1.下载flink-1.7.1-bin-scala_2.12.tgz,不要下带hadoop依赖库版本。
2.解压
3.配置flink-1.7.1/conf/flink-conf.yaml,配置说明:
##################################
jobmanager.rpc.address: 162.168.1.185
# The RPC port where the JobManager is reachable.
jobmanager.rpc.port: 6123
# The heap size for the JobManager JVM
jobmanager.heap.size: 10240m
# The heap size for the TaskManager JVM
taskmanager.heap.size: 10240m
# The number of task slots that each TaskManager offers. Each slot runs one parallel pipeline.每个TastManager插槽数
taskmanager.numberOfTaskSlots: 12
# The parallelism used for programs that did not specify and other parallelism.默认并行度
parallelism.default: 12
#临时目录
io.tmp.dirs: /home/flink/tmp
4.配置flink-1.7.1/conf/master,就是JobManager节点IP/HOST : port<