Search code examples
javaapache-flink

What is the Java version that the Flink can support in 2022?


Let's say if I start a new Flink Java project, and if I look for "stable Flink Java production experience", which version should I need to use? The official docs says that it can support Java-11 starting from Flink 1.10 but a lot of users are still using Java-8, so trying to understand whether I need to use AdoptOpenJDK-8 or AdoptOpenJDK-11.


Solution

  • Both Java 8 and Java 11 are supported (though Java 8 has been deprecated).

    Working toward support for Java 17 is happening under FLINK-15736.

    Update: Flink 1.18 added experimental support for Java 17, and experimental support for Java 21 is now in master and should be released with Flink 1.19.