当前位置:   article > 正文

【Flink】解决 No ExecutorFactory found to execute the application_exception in thread "main" java.lang.illegalstatee

exception in thread "main" java.lang.illegalstateexception: no executorfacto

文章目录


在这里插入图片描述

1.场景1

1.1 概述

转载:https://blog.csdn.net/jsjsjs1789/article/details/109069710

问题 Flink 1.11 开始报错如下:

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:1801)
	at org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.execute(StreamExecutionEnvironment.java:1711)
	at org.apache.flink.streaming.api.environment.LocalStreamEnvironment.execute(LocalStreamEnvironment.java:74)
	at org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.execute(StreamExecutionEnvironment.java:1697)
	at com.ishansong.bigdata.SqlKafka.main(SqlKafka.java:54)
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

解决方式
缺少 flink-client jar
引入即可

<dependency>
            <groupId>org.apache.flink</groupId>
            <artifactId>flink-clients_2.11</artifactId>
            <version>${flink.version}</version>
  </dependency>
  • 1
  • 2
  • 3
  • 4
  • 5

原因

在这里插入图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/899423
推荐阅读
相关标签
  

闽ICP备14008679号