博客讨论了Flink运行时遇到的问题,包括'No ExecutorFactory found to execute the application'的错误,该错误通常是由于缺少相关依赖导致。同时,文章提到了在使用Java Lambda表达式时可能遇到的类型推断问题,建议在无法自动提取类型时,可以使用匿名类或明确指定类型信息。
摘要由CSDN通过智能技术生成
报错日志如下
Exception in thread "main" java.lang.IllegalStateException: No ExecutorFactory found to execute the application.
at org.apache.flink.core.execution.DefaultExecutorServiceLoader.getExecutorFactory(DefaultExecutorServiceLoader.java:84)
at org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.executeAsync(StreamExecutionEnvironment.java:1803)
at org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.execute(StreamExecutionEnvironment.java:1713)
at org.apache.flink.streaming.api.environment.LocalStreamEnvironment.execute(LocalStreamEnvironment.java:74)
at org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.execute(StreamExecutionEnvironment