Flink的standalone 模式简单部署

来源:互联网 发布:网络拍卖平台 编辑:程序博客网 时间:2024/06/05 07:24

flink-conf.yaml 文件中进行一下配置:


jobmanager.rpc.address: 10.8.45.10


# The RPC port where the JobManager is reachable.


jobmanager.rpc.port: 6123




# The heap size for the JobManager JVM


jobmanager.heap.mb: 4096




# The heap size for the TaskManager JVM


taskmanager.heap.mb: 4096




# The number of task slots that each TaskManager offers. Each slot runs one parallel pipeline.


taskmanager.numberOfTaskSlots: 4


# Specify whether TaskManager memory should be allocated when starting up (true) or when
# memory is required in the memory manager (false)


taskmanager.memory.preallocate: false


# The parallelism used for programs that did not specify and other parallelism.


parallelism.default: 4




#==============================================================================
# Web Frontend
#==============================================================================


# The address under which the web-based runtime monitor listens.
#
#jobmanager.web.address: 0.0.0.0


# The port under which the web-based runtime monitor listens.
# A value of -1 deactivates the web server.


jobmanager.web.port: 8081


启动:

在bin目录下执行 : ./start-cluster.sh  即可

总体来看,基本的集群操作配置与 hadoop spark 等分布式平台部署没啥区别




0 0