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.

--

--

--

Senior Software Engineer III ( R&D )

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

LambdaMOO (1990)

50 Years of Text Games logo

The Memory Hierarchy

Journey of Apache Kafka & Zookeeper Administrator ( Part 2 )

Job sequencing with deadlines

Yay for touchless services!

Cartoon of a man and a woman wearing masks standing next to printer printing a document. The man is gesturing to the printer with one hand and holding his phone in the other. The woman looks annoyed and says “Yes, touchless printing is neat, but it’s not a fun date activity.”

Forecast Precious Metals Rates Using An API

Team name — Capture the Moment

What is Function-as-a-Service (FaaS)?

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

Senior Software Engineer III ( R&D )

More from Medium

Bind Istio with API Gateway — IaaC

What’s Docker?

Configure your NodeJS Application with IBM Cloud App Configuration using nconf-appconfig

Why is Containerization Taking Over?