当前位置:网站首页>[flink] Error finishing Could not instantiate the executor. Make sure a planner module is on the classpath
[flink] Error finishing Could not instantiate the executor. Make sure a planner module is on the classpath
2022-07-30 19:22:00 【kiraraLou】
前言
Flink 版本 1.15.1scala 版本 2.12
最近在学习 Flink, 在 IDEA中调试 Flink sql 代码时报错,报错内容如下:
Exception in thread "main" org.apache.flink.table.api.TableException: Could not instantiate the executor. Make sure a planner module is on the classpath
at org.apache.flink.table.api.bridge.internal.AbstractStreamTableEnvironmentImpl.lookupExecutor(AbstractStreamTableEnvironmentImpl.java:108)
at org.apache.flink.table.api.bridge.java.internal.StreamTableEnvironmentImpl.create(StreamTableEnvironmentImpl.java:100)
at org.apache.flink.table.api.bridge.java.StreamTableEnvironment.create(StreamTableEnvironment.java:122)
at org.apache.flink.table.api.bridge.java.StreamTableEnvironment.create(StreamTableEnvironment.java:94)
at table.FlinkTableTest.main(FlinkTableTest.java:15)
Caused by: org.apache.flink.table.api.ValidationException: Multiple factories for identifier 'default' that implement 'org.apache.flink.table.delegation.ExecutorFactory' found in the classpath.
Ambiguous factory classes are:
org.apache.flink.table.planner.delegation.DefaultExecutorFactory
org.apache.flink.table.planner.loader.DelegateExecutorFactory
at org.apache.flink.table.factories.FactoryUtil.discoverFactory(FactoryUtil.java:553)
at org.apache.flink.table.api.bridge.internal.AbstractStreamTableEnvironmentImpl.lookupExecutor(AbstractStreamTableEnvironmentImpl.java:105)
... 4 more
Process finished with exit code 1
POM 文件
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-table-planner_2.12</artifactId>
<version>${flink.version}</version>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-table-planner-loader</artifactId>
<version>${flink.version}</version>
</dependency>
问题原因
我们项目pom.xml There are two parsers configured in the file,The two parsers cannot coexist at the same time,这里我们去掉 flink-table-planner_2.12 这个即可.
从 Flink 1.15 开始,The distribution contains two planners:
flink-table-planner_2.12-1.15.1.jar, in /opt, Contains the query plannerflink-table-planner-loader-1.15.1.jar,默认加载/lib,Contains the query planner hidden behind the isolated classpath
注意: Two planners cannot exist on the classpath at the same time.If you load them both into /libtable work,则会失败.
问题解决!
参考:https://nightlies.apache.org/flink/flink-docs-release-1.15/docs/dev/configuration/advanced/
边栏推荐
- Anaconda Navigator stuck on loading applications
- NXP IMX8QXP replacement DDR model operation process
- 自己需要努力
- requet.getHeader(“token“) 为null
- Talking about Contrastive Learning (Contrastive Learning) the first bullet
- MindSpore:【Resolve node failed】解析节点失败的问题
- Node encapsulates a console progress bar plugin
- VBA connects Access database and Excel
- MindSpore: CV.Rescale(rescale,shift)中参数rescale和shift的含义?
- nlohmann json 使用指南【visual studio 2022】
猜你喜欢
![【Prometheus】Prometheus联邦的一次优化记录[续]](/img/5d/56e171b7a02584337a0cfe5c731fb2.png)
【Prometheus】Prometheus联邦的一次优化记录[续]

Win11如何更改默认下载路径?Win11更改默认下载路径的方法

Google's AlphaFold claims to have predicted almost every protein structure on Earth

MySql中@符号的使用

【hbuilder】运行不了部分项目 , 打开终端 无法输入指令

Swiper轮播图片并播放背景音乐

【网站放大镜效果】两种方式实现
![[Summary] 1396- 60+ VSCode plugins to create a useful editor](/img/e4/65e55d0e4948c011585b72733d4d19.jpg)
[Summary] 1396- 60+ VSCode plugins to create a useful editor

The Meta metaverse division lost 2.8 billion in the second quarter!Still want to keep betting?Metaverse development has yet to see a way out!

【每日一道LeetCode】——191. 位1的个数
随机推荐
还有三天忙完
2种手绘风格效果比较,你更喜欢哪一种呢?
MindSpore:Cifar10Dataset‘s num_workers=8, this value is not within the required range of [1, cpu_thr
MindSpore:自定义dataset的tensor问题
VBA connects Access database and Excel
CIMC Shilian Dafeitong is the global industrial artificial intelligence AI leader, the world's top AI core technology, high generalization, high robustness, sparse sample continuous learning, industri
After 23 years of operation, the former "China's largest e-commerce website" has turned yellow...
Encapsulates a console file selector based on inquirer
055 c# print
natural language processing nltk
谷歌AlphaFold近日宣称预测出地球上几乎所有蛋白质结构
又一家公司面试的内容
Spark学习:用spark实现ETL
MindSpore: CV.Rescale(rescale,shift)中参数rescale和shift的含义?
The advanced version of the cattle brushing series (search for rotating sorted arrays, inversion of the specified range in the linked list)
Chapter 14 Type Information
开心的聚餐
卫星电话是直接与卫星通信还是通过地面站?
Scala学习:breakable
MYSQL (Basic) - An article takes you into the wonderful world of MYSQL