代码:
LOGGER.warn("intergrationFlinkStream,excute begin");
JobExecutionResult intergrationFlinkStream = env.execute("intergrationFlinkStream");
LOGGER.warn("intergrationFlinkStream,excute over");
日志:
2020-03-04 11:25:53,605 WARN com.founder.bigdata.IntergrationFlinkStream - intergrationFlinkStream,excute begin
。
。
。
2020-03-04 11:27:19,993 INFO org.apache.flink.runtime.dispatcher.StandaloneDispatcher - Job 664fabaccb36664171bd7ac81074053e reached globally terminal state FINISHED.
只打印了第一个日志,执行完execute,下面的代码没有走。
在本地执行就没有这个问题,提交到flink上才这样