千家信息网

flink table api运行错误怎么办

发表于:2025-02-03 作者:千家信息网编辑
千家信息网最后更新 2025年02月03日,这篇文章将为大家详细讲解有关flink table api运行错误怎么办,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。1. flink table api 运行错误
千家信息网最后更新 2025年02月03日flink table api运行错误怎么办

这篇文章将为大家详细讲解有关flink table api运行错误怎么办,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。

1. flink table api 运行错误

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.java.internal.StreamTableEnvironmentImpl.lookupExecutor(StreamTableEnvironmentImpl.java:167)        at org.apache.flink.table.api.bridge.java.internal.StreamTableEnvironmentImpl.create(StreamTableEnvironmentImpl.java:135)        at org.apache.flink.table.api.bridge.java.StreamTableEnvironment.create(StreamTableEnvironment.java:111)        at org.apache.flink.table.api.bridge.java.StreamTableEnvironment.create(StreamTableEnvironment.java:82)        at com.river.flink.Demo.tableapi.TableApiDemo.main(TableApiDemo.java:47)Caused by: org.apache.flink.table.api.NoMatchingTableFactoryException: Could not find a suitable table factory for 'org.apache.flink.table.delegation.ExecutorFactory' inthe classpath.Reason: No factory supports the additional filters.The following properties are requested:class-name=org.apache.flink.table.planner.delegation.BlinkExecutorFactorystreaming-mode=trueThe following factories have been considered:org.apache.flink.table.executor.StreamExecutorFactory        at org.apache.flink.table.factories.ComponentFactoryService.find(ComponentFactoryService.java:71)        at org.apache.flink.table.api.bridge.java.internal.StreamTableEnvironmentImpl.lookupExecutor(StreamTableEnvironmentImpl.java:158)        ... 4 more

错误分析:

Could not instantiate the executor. Make sure a planner module is on the classpath

指定planner , 添加pom, 指定planner-blink, 问题解决

                    org.apache.flink            flink-table-planner-blink_2.12            1.12.0        

关于"flink table api运行错误怎么办"这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。

0