Reputation: 63
I have installed Apache Kafka with Java 8 and Oracle JDK. However my company is thinking to move to OpenJDK
Is there any issues or considerations to implement and use Kafka with OpenJDK?
Is there some documentation about this relationship (apache kafka<->OpenJDK).
Upvotes: 1
Views: 3279
Reputation: 178
As a datapoint, Confluent's (the biggest company behind Kafka) Docker images use Azul Zulu themselves (source).
The Confluent Docker images are tested and shipped with Azul Zulu OpenJDK.
So I would take it as a strong proof that everything works fine. Not to mention that we test it extensively internally.
Just for you to know, you can also consider trying out Azul Platform Prime, which OpenJDK-based optimized JVM which can give you quite an improvement of Kafka's performance in terms of throughput and latency. Details can be found here.
Disclaimer: I work for Azul, so I'm obviously biased.
Upvotes: 0
Reputation: 191983
Oracle JDK is recommended, but Zulu or OpenJDK will work fine for most purposes. OS shouldn't be a factor because Java is cross platform.
In fact, the Ansible Playbooks provided by Confluent will install OpenJDK as a prerequisite for Zookeeper and Kafka.
You might even be able to use Java 9 or 10 with the latest release 2.0 of Kafka, though I'm not sure if the same can be said for Zookeeper
Upvotes: 1