本节主要介绍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