Journey of Apache Kafka & Zookeeper Administrator ( Part 13 )

  1. Support for Kafka 2.6.0 Release
  2. Support for Java 11 and higher version
  • Added support for More Metrics
  1. kafka-server-start.sh Template
# kafka gc logs settings
{% if javaVersion > 9 %}
export KAFKA_GC_LOG_OPTS="-Xlog:gc*:file={{ kafkaLogDir }}/kafkaServer-gc.log:time,tags:filecount=10,filesize=1024"
{% else %}
export KAFKA_GC_LOG_OPTS="-Xloggc:{{ kafkaLogDir }}/kafkaServer-gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=10M"
{% endif %}
- name: Install Openjdk | {{ javaVersion }} | RedHat | if java version is less than 9
yum:
name: "{{ item }}"
state: "{{ javaUpdateState | default('present') }}"
update_cache: true
loop:
- "java-1.{{ javaVersion }}.0-openjdk"
- "java-1.{{ javaVersion }}.0-openjdk-devel"
when:
- ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux' or ansible_distribution == 'RedHat'
- javaVersion | int < 9
# TODO: Java 9 & 10 packages are not avilable
- name: Install Openjdk | {{ javaVersion }} | RedHat | if java version is greater than 9
yum:
name: "{{ item }}"
state: "{{ javaUpdateState | default('present') }}"
update_cache: true
loop:
- "java-{{ javaVersion }}-openjdk"
- "java-{{ javaVersion }}-openjdk-devel"
when:
- ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux' or ansible_distribution == 'RedHat'
- javaVersion | int >= 9
  1. Star & Fork the Project.
  2. Please create Issues, if more features are required or something unexpected happens.
  3. Please create PR, if you have a working solution for your problem.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Davinder Pal

Davinder Pal

Principal Software Architect I ( R&D DevOps )