Flink解决 No ExecutorFactory found to execute the application

Posted 九师兄

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Flink解决 No ExecutorFactory found to execute the application相关的知识,希望对你有一定的参考价值。

文章目录


在这里插入图片描述

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)

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

<dependency>
            <groupId>org.apache.flink</groupId>
            <artifactId>flink-clients_2.11</artifactId>
            <version>${flink.version}</version>
  </dependency>

原因

在这里插入图片描述

以上是关于Flink解决 No ExecutorFactory found to execute the application的主要内容,如果未能解决你的问题,请参考以下文章

Flink FLink TaskManager with id is no longer reachable

Flink 1.11+ No ExecutorFactory found to execute the application

Flink 1.11+ No ExecutorFactory found to execute the application

Flink No appenders could be found for logger

Flink报错 No pooled slot available and request to ResourceManager for new slot failed

Flink No appenders could be found for logger