Build apache kafka server packages from official.
- Released July 29, 2024
- Release Notes
Support:
- Enterprise Linux 9 (RHEL 9, Rocky Linux 9, AlmaLinux 9, CentOS 9 Stream)
- Enterprise Linux 8 (RHEL 8, Rocky Linux 8, AlmaLinux 8)
Support:
- Debian 12 (Bookworm)
- Debian 11 (Bullseye)
- Debian 10 (Buster)
- Ubuntu 24.04 LTS (Noble Numbat)
- Ubuntu 22.04 LTS (Jammy Jellyfish)
- Ubuntu 20.04 LTS (Focal Fossa)
Download the package from releases
RHEL, Rocky Linux, AlmaLinux, CentOS
Install jdk
yum install java-21-openjdk
EL9
rpm -ivh kafka-3.8.0-1.el9.x86_64.rpm
EL8
rpm -ivh kafka-3.8.0-1.el8.x86_64.rpm
Install jdk
apt install openjdk-21-jdk
Debian or Ubuntu
dpkg -i kafka_3.8.0-1_amd64.deb
Start kafka-zookeeper.service
systemctl start kafka-zookeeper.service
Start kafka.service
systemctl start kafka.service
View service status
systemctl status kafka-zookeeper.service
systemctl status kafka.service
Add auto start
systemctl enable kafka-zookeeper.service
systemctl enable kafka.service
Stop service
systemctl stop kafka.service
systemctl stop kafka-zookeeper.service
Disable auto start
systemctl disable kafka-zookeeper.service
systemctl disable kafka.service
Stop kafka and kafka-zookeeper service first
systemctl stop kafka.service
systemctl stop kafka-zookeeper.service
Start Kafka with KRaft
systemctl start kafka-kraft.service
Your need not to init KRaft data dirs, /usr/libexec/kafka-kraft-prepare-log-dirs
will do it automatically.
View service status
systemctl status kafka-kraft.service
Add auto start
systemctl enable kafka-kraft.service
Stop service
systemctl stop kafka-kraft.service
Disable auto start
systemctl disable kafka-kraft.service
RHEL, Rocky Linux, AlmaLinux, CentOS
EL9
rpm -e kafka-3.8.0-1.el9.x86_64
EL8
rpm -e kafka-3.8.0-1.el8.x86_64
Debian or Ubuntu
dpkg -r kafka
dpkg --purge kafka
Run Kafka with Zookeeper conflict with Run Kafka with KRaft.
data dirs is:
- kafka - /var/lib/kafka
- zookeeper - /var/lib/zookeeper
- kraft - /var/lib/kraft
log dir is:
- kafka - /var/log/kafka
- zookeeper - /var/log/zookeeper
- kraft - /var/log/kraft
The project is released under version 2.0 of the Apache License.