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 Jessie distro.
The specs are adapted to pre-built Apache Kafka.
- Download the upstream tarball with pre-built Apache Kafka from the
Kafka site;
or use
uscan
to download automatically:
uscan -v --download-current-version
- 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/
- Create a source package:
dpkg-source -b ./kafka-$version
- Build a binary DEB-package in a clean chrooted environment (need to configure pbuilder if not configured yet):
sudo pbuilder --build kafka_$version-$release.dsc
- Include the source and the binary packages into an APT repository (need to configure reprepro if not configured yet):
reprepro include $suite kafka_$version-$release.changes
apt-get install kafka
Directory layout:
- /etc/kafka - configs;
- /usr/lib/kafka/bin - helper scripts;
- /var/lib/kafka - PID files and runtime data;
- /var/log/kafka - log files.