Last active
August 29, 2019 10:30
-
-
Save daimaou92/654cf845965fc92b9fd4f8f3e3b065dd to your computer and use it in GitHub Desktop.
Setting up Kafka on Ubuntu-18.04. Credits: https://www.digitalocean.com/community/tutorials/how-to-install-apache-kafka-on-ubuntu-18-04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Kafka | |
Requires=zookeeper.service | |
After=zookeeper.service | |
[Service] | |
Type=simple | |
ExecStart=/bin/sh -c '/home/ubuntu/.kafka/bin/kafka-server-start.sh /home/ubuntu/.kafka/config/server.properties > /home/ubuntu/.kafka/kafka.log 2>&1' | |
ExecStop=/home/ubuntu/.kafka/bin/kafka-server-stop.sh | |
Restart=on-abnormal | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Zookeeper | |
After=syslog.target | |
After=network.target | |
After=systemd-vconsole-setup.service | |
[Service] | |
Type=simple | |
ExecStart=/home/ubuntu/.kafka/bin/zookeeper-server-start.sh /home/ubuntu/.kafka/config/zookeeper.properties | |
ExecStop=/home/ubuntu/.kafka/bin/zookeeper-server-stop.sh | |
Restart=on-abnormal | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment