当前位置:网站首页>【flink】报错整理 Could not instantiate the executor. Make sure a planner module is on the classpath
【flink】报错整理 Could not instantiate the executor. Make sure a planner module is on the classpath
2022-07-30 19:17: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 文件里面配置了两个解析器,这两个解析器不能同时并存,这里我们去掉 flink-table-planner_2.12 这个即可。
从 Flink 1.15 开始,发行版包含两个规划器:
flink-table-planner_2.12-1.15.1.jar, in /opt, 包含查询规划器flink-table-planner-loader-1.15.1.jar,默认加载/lib,包含隐藏在隔离类路径后面的查询计划器
注意: 两个规划器不能同时存在于类路径中。如果将它们都加载到/lib表作业中,则会失败。
问题解决!
参考:https://nightlies.apache.org/flink/flink-docs-release-1.15/docs/dev/configuration/advanced/
边栏推荐
- After 23 years of operation, the former "China's largest e-commerce website" has turned yellow...
- MindSpore:数据处理问题
- 【科普】无线电波怎样传送信息?
- Talking about Contrastive Learning (Contrastive Learning) the first bullet
- crontab中写go run不执行的问题
- 卫星电话是直接与卫星通信还是通过地面站?
- AI Basics: Graphical Transformer
- MindSpore:【MindSpore1.1】Mindspore安装后验证出现cudaSetDevice failed错误
- SimpleOSS third-party library libcurl and engine libcurl error solution
- Win11如何更改默认下载路径?Win11更改默认下载路径的方法
猜你喜欢

natural language processing nltk

AI Basics: Graphical Transformer

【Pointing to Offer】Pointing to Offer 22. The kth node from the bottom in the linked list

SimpleOSS third-party library libcurl and engine libcurl error solution

【MindSpore】多卡训练保存权重问题

MySql中@符号的使用

【每日一道LeetCode】——191. 位1的个数

- daily a LeetCode 】 【 191. A number of 1

MindSpore:【JupyterLab】查看数据时报错

kotlin by lazy
随机推荐
Listen to the boot broadcast
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
跨进程启动后台服务
架构师如何成长
NXP IMX8QXP replacement DDR model operation process
AI Basics: Graphical Transformer
跨域问题的解决方法
MindSpore:【MindSpore1.1】Mindspore安装后验证出现cudaSetDevice failed错误
VBA connects Access database and Excel
MySql中@符号的使用
Google's AlphaFold claims to have predicted almost every protein structure on Earth
VS Code connects to SQL Server
VBA批量将Excel数据导入Access数据库
第一次进入小程序判断
MYSQL (Basic) - An article takes you into the wonderful world of MYSQL
【每日一道LeetCode】——191. 位1的个数
深入浅出边缘云 | 3. 资源配置
Another company interview
What is the value of biomedical papers? How to translate the papers into Chinese and English?
ImportError:attempted relative import with no known parent package