【Flink】Job was submitted in detached mode Please make sure your program doesn‘t call an eager execut

程序出现如下问题

est3:36113 of application 'application_1669792033719_0012'.
Job has been submitted with JobID 6be357865cee9d354912177cbe0e9c23

------------------------------------------------------------
 The program finished with the following exception:

Job was submitted in detached mode. Results of job execution, such as accumulators, runtime, etc. are not available. Please make sure your program doesn't call an eager execution function [collect, print, printToErr, count].
        org.apache.flink.core.execution.DetachedJobExecutionResult.getAccumulatorResult(DetachedJobExecutionResult.java:56)
        org.apache.flink.api.java.DataSet.collect(DataSet.java:419)
        org.apache.flink.api.java.DataSet.print(DataSet.java:1748)
        com.batch.FlinkBatch.main(FlinkBatch.java:29)

代码如下,可以重点看标红部分

你可能感兴趣的:(Flink实战,flink,大数据)