common-docker
common-docker copied to clipboard
replace java 11 by java 17
Kafka 3.1.0 is officially compatible with java 17 , it would be great to update the base of the common image to use the latest LTS java version
The released CP versions will continue to ship with their respective version of Java as per:
https://docs.confluent.io/platform/current/installation/versions-interoperability.html#java-sys-req
JDK17 support will come in the form of a new major CP release, which at this time isn't clear or on a roadmap I'm aware of.
confluent 7.1.0 is out with kafka 3.1.X support
https://docs.confluent.io/platform/current/installation/versions-interoperability.html
Any roadmap/document about the official support of Java17 in CP?
Interestingly, the linked versions-interoperability document from Confluent (linked twice above) recommends Java 17 over 11 and 8, but the official distributions still use Java 11. I can't find documentation that says java version updates are reserved for major version CP releases. Perhaps that could be rechecked/revisited? I would have thought that the recommended version is the version shipped in official releases.
You can also look to e.g. Elastic who have done Java version updates in minor versions of their products and seemingly gotten away just fine with it.
base image is sill using java11
https://github.com/confluentinc/common-docker/blob/1365ddb2c09fbddd690ca1dcbc6b5594d2ea0b96/base/Dockerfile.ubi8#L100
but documentation say
Java 17 is the recommended version in this version of Confluent Platform. Java 11 and Java 8 are also supported.
Any progress on this issue?
Is there any update regarding Java version upgrade in base image?
Update?
Coming here to comment as well that the docs are confusing because according to this matrix : https://docs.confluent.io/platform/current/installation/versions-interoperability.html#java
The recommended version of Java since 7.3.x
is Java 17, but the Docker documentation, however, says that Java 11 is what is included https://docs.confluent.io/platform/current/installation/versions-interoperability.html#docker
It is a bit strange that the images do not ship with the recommended version of Java
For now, I just removed Java 11 and installed Java 17 myself
RUN yum remove -y zulu11-ca-jdk-headless && yum remove -y zulu11-ca-jre-headless
Any update on this ?
Would love an update on this as well, this prevents a lot of teams from moving on from Java 11. Thank you!
I think that to avoid being blocked you can try what I mentioned above and just install it yourself. As @andrewegel pointed out, it is not even in the roadmap yet so it will take months at best
done in confluent 7.7.0