Closed yaoyao12138 closed 3 years ago
chown kafka:kafka /mnt/data/kafka
on both nodes.broker.id =2
in /etc/kafka/server.properties
on 9.30.246.11, make the broker.id is a unique integer for each broker.So far it is working fine as follows:
root@yao-instana-vm-32-2-instana-db:/etc/kafka# systemctl status kafka
● kafka.service - Kafka Server
Loaded: loaded (/lib/systemd/system/kafka.service; disabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/kafka.service.d
└─override.conf
Active: active (running) since Tue 2021-10-19 19:56:14 PDT; 19min ago
Main PID: 1404013 (java)
Tasks: 80 (limit: 38431)
Memory: 282.2M
CGroup: /system.slice/kafka.service
└─1404013 /opt/instana/jre11/bin/java -Xmx256M -server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -XX:MaxInlineLevel=15 -Djava.awt.headless=true -Dcom.sun.m>
Oct 19 19:56:14 yao-instana-vm-32-2-instana-db.fyre.ibm.com systemd[1]: Started Kafka Server.
@yaoyao12138
Thanks for your effort, the kafka could work normally on both 2 nodes.
Also, in the instana operator log, it shows that the kafka is healthy.
ts=2021-10-20T03:51:32.078913816Z level=info logger=migration msg="Kafka (kafka): is healthy"
In the Instana env, there is only the instana operator pod launched.
From the log, there is the Kafka error.
In the db env of Kafka, the service is ruuning but it seems re-start repeatly.