Apache Flink源码分析---client SubmitJob流程

本文深入探讨Apache Flink的作业提交流程,从客户端的flink脚本开始,详细解析配置Job提交的步骤,重点围绕CliFrontend类进行阐述。
摘要由CSDN通过智能技术生成

本节主要介绍flink 提交作业的流程

Flink作业提交

  flink客户端操作都是通过flink脚本,作业提交使用run action,实例如下:

[flink@dcam-hh205-hx91w bin]$ ./flink run ../examples/batch/WordCount.jar
Setting HADOOP_CONF_DIR=/etc/hadoop/conf because no HADOOP_CONF_DIR was set.
Executing WordCount example with default input data set.
Use --input to specify file input.
Printing result to stdout. Use --output to specify output path.
Job has been submitted with JobID f37d1854691d73d26c7a922232191361
Program execution finished
Job with JobID f37d1854691d73d26c7a922232191361 has finished.
Job Runtime: 450 ms
Accumulator Results: 
- c5b43c35cb13eb15fa3d55b805003023 (java.util.ArrayList) [170 elements]

flink脚本如下:


target="$0"
# For the case, the executable has been directly symlinked, figure out
# the correct bin path by following its symlink up to an upper bound.
# Note: we can't use t
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值