Hi Team, We are currently using Apache Flink 1.20...
# troubleshooting
j
Hi Team, We are currently using Apache Flink 1.20.2 and planning to upgrade to Java 21 for our next release. But Flink’s Docker Hub does not offer a Flink 1.20.2 image with Java 21, only versions up to Java 17 are available. What are our options to move forward?
a
Java 17 is the latest supported Java version for Flink 1.20. Java 21 is only supported from Flink version 2 and onwards
j
Is there any workaround? In flink 1.19 release note we see small note about support for java 21 in beta https://nightlies.apache.org/flink/flink-docs-master/release-notes/flink-1.19/
a
If you click the link to the Jira ticket you'll see that the listed fix version is 2.0.0. You can try to roll your own Docker image with Java 21, but I would advice against it. I guess there's a good reason Java 21 isn't supported by Flink 1.20. I guess required changes have not been back-ported, and that you might run into issues at run-time.