confluentinc / common-docker

Confluent Commons with support for building and testing Docker images.
Apache License 2.0
4 stars 69 forks source link

replace java 11 by java 17 #179

Closed raphaelauv closed 2 months ago

raphaelauv commented 2 years ago

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

andrewegel commented 2 years ago

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.

raphaelauv commented 2 years ago

confluent 7.1.0 is out with kafka 3.1.X support

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

frosiere commented 2 years ago

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

jonaslb commented 1 year ago

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.

raphaelauv commented 1 year ago

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.

drozd0 commented 1 year ago

Any progress on this issue?

lagunary commented 1 year ago

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

djchapm commented 1 year ago

Update?

yeikel commented 1 year ago

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

whgibbo commented 8 months ago

Any update on this ?

alwaysbemark commented 8 months ago

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

yeikel commented 8 months ago

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

raphaelauv commented 2 months ago

done in confluent 7.7.0