The repo contains so called DEBIAN directory with scripts and configs needed to package the Apache Kafka server into a DEB package for the Debian Wheezy distro.
-
Download the upstream binary tarball from the Kafka site;
-
Unpack the tarball:
tar xf kafka-$version.tar.gz
- Copy the debian dir into the upstream sources tree:
cp -r /path/to/the/repo/debian ./kafka-$version/
- Build a binary DEB-package:
cd /kafka-$version; dpkg-buildpackage
- Include the source and the binary packages into a APT repository (need to configure reprepro if not configured yet):
reprepro -b /path/to/apt/repo/dir/ include wheezy kafka_$version-$release.changes
apt-get install kafka-daemon
Directory layout:
- /etc/kafka - configs;
- /usr/lib/kafka/bin - helper scripts;
- /var/lib/kafka - PID files and runtime data;
- /var/log/kafka - log files.