Created
November 16, 2016 20:09
-
-
Save jcustenborder/e98972768f2710e425c7e7a3975c9445 to your computer and use it in GitHub Desktop.
Kafka systemd
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 = Apache Kafka by Confluent | |
Wants = basic.target | |
After = basic.target network.target | |
[Service] | |
EnvironmentFile = /etc/sysconfig/kafka | |
ExecStart = /usr/bin/kafka-server-start /etc/kafka/server.properties | |
LimitNOFILE = 131072 | |
KillMode = process | |
User = kafka | |
RestartSec = 5 | |
Type = simple | |
ExecStop = /usr/bin/kafka-server-stop | |
[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
KAFKA_HEAP_OPTS="-Xmx1024M" | |
KAFKA_OPTS="-Djava.net.preferIPv4Stack=true" | |
GC_LOG_ENABLED="true" | |
LOG_DIR="/var/log/kafka" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment