Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility Issues Between Apache Beam and Flink #29660

Open
vcastell-tibco opened this issue Dec 7, 2023 · 3 comments
Open

Compatibility Issues Between Apache Beam and Flink #29660

vcastell-tibco opened this issue Dec 7, 2023 · 3 comments

Comments

@vcastell-tibco
Copy link

I am running into some issues and would like comments on how to proceed or resolve the issue.

I have been successful in running the Flink examples against a Flink Cluster running on Kubernetes. I am trying to run similar examples from Apache Beam. I am able to the following using Apache Beam 2.5.0 or 2.5.2 against Flink 1.16.3 but I am trying to use Flink 1.17.1 or later but I cannot submit job against Flink cluster.
Package Apache Beam Wordcount example with Flink runner using command “$ mvn package -Pflink-runner”?
Push the application to Flink Cluster using below convention which is documented in Beam docs.

mvn exec:java -Dexec.mainClass=org.apache.beam.examples.WordCount
-Pflink-runner
-Dexec.args=“--runner=FlinkRunner
--inputFile=/path/to/pom.xml
--output=/path/to/counts
--flinkMaster=
--filesToStage=target/word-count-beam-bundled-0.1.jar”

If I do above steps using Beam 2.50.0 or 2.52.0 against Flink 1.16.3 then it works fine. Job is submitted and runs successfully. If I use the same version of Beam but a higher version of Flink then the job fails to submit. I am getting errors with the dependencies which are packaged with application. It looks like the additional jars packaged are not compatible with the Flink runtime. Can someone please let me know what combination of Beam is required with Flink 1.17.x or higher? Thanks

@ConfuzedCoder
Copy link

I think the Flink Runner only supports a Flink version till 1.16, there is no support for versions 1.17 and 1.18. Someone correct me if I am wrong.

@kennknowles
Copy link
Member

Just adding an update today that the Flink community seems to advertise the existence of 1.18, 1.19, and 1.20. Meanwhile in beam with the upcoming 2.61.0 release we will support 1.17, 1.18, and 1.19. So these are the versions that you'd want to look into.

@je-ik
Copy link
Contributor

je-ik commented Oct 25, 2024

Please verify that the version of Flink runner in the pom.xml matches the version of Flink. Flink version 1.16 have to use artifact beam-runners-flink-flink-1.16 and Flink 1.17 must use beam-runners-flink-1.17.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants