common-docker icon indicating copy to clipboard operation
common-docker copied to clipboard

replace java 11 by java 17

Open raphaelauv opened this issue 3 years ago • 12 comments

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

raphaelauv avatar Feb 18 '22 19:02 raphaelauv

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.

andrewegel avatar Feb 23 '22 19:02 andrewegel

confluent 7.1.0 is out with kafka 3.1.X support

https://docs.confluent.io/platform/current/installation/versions-interoperability.html

raphaelauv avatar Apr 05 '22 15:04 raphaelauv

Any roadmap/document about the official support of Java17 in CP?

frosiere avatar Jul 25 '22 15:07 frosiere

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.

jonaslb avatar Feb 06 '23 16:02 jonaslb

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.

raphaelauv avatar Feb 09 '23 14:02 raphaelauv

Any progress on this issue?

drozd0 avatar Mar 14 '23 15:03 drozd0

Is there any update regarding Java version upgrade in base image?

lagunary avatar May 22 '23 13:05 lagunary

Update?

djchapm avatar Sep 01 '23 16:09 djchapm

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

yeikel avatar Oct 03 '23 00:10 yeikel

Any update on this ?

whgibbo avatar Jan 22 '24 16:01 whgibbo

Would love an update on this as well, this prevents a lot of teams from moving on from Java 11. Thank you!

alwaysbemark avatar Feb 07 '24 22:02 alwaysbemark

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

yeikel avatar Feb 08 '24 19:02 yeikel

done in confluent 7.7.0

raphaelauv avatar Jul 30 '24 02:07 raphaelauv