首页 新闻 会员 周边 捐助

ApacheFlink由1.17.2升级至1.18.1会报ClassNotFoundException:org.apache.flink.api.common.ExecutionConfig

0
悬赏园豆:120 [待解决问题]

引入的组件是flink-clients,flink-java,flink-streaming-java以上组件版本为1.18.1,flink-connector-kafka版本为3.0.2-1.18,springBoot版本为2.6.9

Sof的主页 Sof | 初学一级 | 园豆:12
提问于:2024-02-01 10:57
< >
分享
所有回答(1)
0

参考 Re: Getting java.lang.ClassNotFoundException in Tests (Flink 1.18.0)

The missing class is in "flink-core", I think adding that dependency will
provide it.

The release notes for 1.14 note that Connectors no longer bundle
"flink-core". I imagine this is what has caused your issue.
https://nightlies.apache.org/flink/flink-docs-release-1.18/release-notes/flink-1.14/#connector-base-exposes-dependency-to-flink-core

dudu | 园豆:29618 (高人七级) | 2024-02-01 11:27

您好,在您的回答链接中有如下一段内容
Re: Getting java.lang.ClassNotFoundException in Tests (Flink 1.18.0)
Barak Ben-Nathan Sun, 03 Dec 2023 00:32:14 -0800

Hi guys,

Forking in sbt solved the issue (Test / fork := true).
请问您可以解答一下以上回复内容吗?

支持(0) 反对(0) Sof | 园豆:12 (初学一级) | 2024-02-01 13:28
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册