Installing and configuring Apache Kafka
Also available as:

Java Version

With Apache Kafka on HDP 2.5, you should use the latest update for Java version 1.8 and make sure that G1 garbage collection support is enabled. (G1 support is enabled by default in recent versions of Java.) If you prefer to use Java 1.7, make sure that you use update u51 or later.

Here are several recommended settings for the JVM:


To set JVM heap size for the Kafka broker, export KAFKA_HEAP_OPTS; for example:

                     export KAFKA_HEAP_OPTS="-Xmx2g -Xms2g"