Kafka - Confluent - Java Version Support

后端 未结 3 1630
小蘑菇
小蘑菇 2021-01-22 06:14

I am looking at Apache Kafka v2.0.0 and I can\'t figure out what version of java it supports (OpenJDK or Oracle JDK\'s new lifecycle)? So far I have seen conflicting documentati

相关标签:
3条回答
  • 2021-01-22 06:32

    Apache Kafka v2.0.0

    Apache Kafka official documentation is quite clear on that:

    From a security perspective, we recommend you use the latest released version of JDK 1.8 as older freely available versions have disclosed security vulnerabilities. LinkedIn is currently running JDK 1.8 u5 (looking to upgrade to a newer version) with the G1 collector.

    Also, notable changes in 2.0.0 section mentions the following:

    Support for Java 7 has been dropped, Java 8 is now the minimum version required.

    Oracle JDK is recommended but openJDK or Zulu should work fine for most cases as well.

    Confluent Platform 5.0.x

    For Confluent Kafka in particular,

    Java 1.9 and 1.10 are not currently supported in Confluent Platform. Later versions of Confluent Platform will support these Java versions.

    and the minimum recommended version for Confluent 5.0.x (that comes with Kafka v2.0.0) is JDK 1.8 → u31 or later.

    0 讨论(0)
  • 2021-01-22 06:33

    Apache Kafka 2.1.0 and newer support Java 11:

    https://issues.apache.org/jira/browse/KAFKA-7264

    There was an outdated documentation page that has been fixed (the website will be updated soon):

    https://github.com/apache/kafka/pull/9080

    0 讨论(0)
  • 2021-01-22 06:34

    The blog by Neha Narkhede only refers to Kafka, not Confluent Platform. Like most companies with model of selling services to an open-source project, Confluent's add-ons address their customers' needs. Since most customers are probably running 1.8, there is no business need to support 9 or 10 yet.

    However, the open-source project has to address the EOL support of Java. You can see this in the JIRAs.

    • KAFKA-4501 - Support Java 9
    • HADOOP-11123 - Fix Java 9 incompatibilies in Hadoop
    0 讨论(0)
提交回复
热议问题