当前位置:网站首页>[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.1
scala 版本 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
- 【每日一道LeetCode】——191. 位1的个数
- LocalDate时间生成
- VBA runtime error '-2147217900 (80040e14): Automation error
- AI Basics: Graphical Transformer
- How do radio waves transmit information?
- DM8: Single database and single instance to build a local data guard service
- Spark学习:编译Spark项目时遇到的报错
- Scrapy framework is introduced
- 基于inquirer封装一个控制台文件选择器
猜你喜欢
iPhone真是十三香?两代产品完全对比,或许上一代更值得买
【Pointing to Offer】Pointing to Offer 18. Delete the node of the linked list
MindSpore:【语音识别】DFCNN网络训练loss不收敛
【MindSpore】多卡训练保存权重问题
【Prometheus】Prometheus联邦的一次优化记录[续]
来了!东方甄选为龙江农产品直播带货
VBA connects Access database and Excel
谷歌AlphaFold近日宣称预测出地球上几乎所有蛋白质结构
解决终极bug,项目最终能顺利部署上线。
经济新闻:错误# 15:初始化libiomp5md。dll,但发现libiomp5md。已经初始化dll。解决方法
随机推荐
Mysql execution principle analysis
055 c# print
golang日志库zerolog使用记录
【刷题篇】计算质数
The 17th "Revitalization Cup" National Youth Vocational Skills Competition - Computer Programmers (Cloud Computing Platform and Operation and Maintenance) Participation Review and Summary
谷歌AlphaFold近日宣称预测出地球上几乎所有蛋白质结构
Swiper rotates pictures and plays background music
LocalDate时间生成
牛客刷题系列之进阶版(组队竞赛,排序子序列,倒置字符串, 删除公共字符,修理牧场)
【Pointing to Offer】Pointing to Offer 18. Delete the node of the linked list
Google's AlphaFold claims to have predicted almost every protein structure on Earth
几个GTest、GMock的例子
【MindSpore】用coco2017训练Model_zoo上的 yolov4,迭代了两千多batch_size之后报错,大佬们帮忙看看。
浅聊对比学习(Contrastive Learning)第一弹
Scala学习:breakable
iPhone真是十三香?两代产品完全对比,或许上一代更值得买
【PyTorchVideo教程01】快速实现视频动作识别
C# wpf 无边框窗口添加阴影效果
MindSpore:【MindSpore1.1】Mindspore安装后验证出现cudaSetDevice failed错误
VS Code 连接SQL Server