Heather Lemon created BIGTOP-3370: ------------------------------------- Summary: Add support for systemd conf file in Zookeeper Key: BIGTOP-3370 URL: https://issues.apache.org/jira/browse/BIGTOP-3370 Project: Bigtop Issue Type: Improvement Reporter: Heather Lemon
This feature request is a follow on from this previous jira issue: #https://issues.apache.org/jira/browse/ZOOKEEPER-2095 to add systemd support for Zookeeper. There is an attached patch file in the jira, however I believe we only need the systemd startup script. Tested on distributed 3-node ubuntu instance with systemd zk.service, instructions from here: [https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-an-apache-zookeeper-cluster-on-ubuntu-18-04] working systemd zk.service file: [Unit] Description=Zookeeper Daemon Documentation=[http://zookeeper.apache.org|http://zookeeper.apache.org/] Requires=network.target After=network.target [Service] Type=simple WorkingDirectory=/var/lib/zookeeper ExecStart=/usr/lib/zookeeper/bin/zkServer.sh start-foreground /etc/zookeeper/conf/zoo.cfg ExecStop=/usr/lib/zookeeper/bin/zkServer.sh stop /etc/zookeeper/conf/zoo.cfg ExecReload=/usr/lib/zookeeper/bin/zkServer.sh restart /etc/zookeeper/conf/zoo.cfg Restart=on-failure [Install] WantedBy=default.target ubuntu@juju-c35d5c:$ sudo systemctl status zk ● zk.service - Zookeeper Daemon Loaded: loaded (/etc/systemd/system/zk.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2020-06-08 19:17:11 UTC; 380ms ago Docs: [http://zookeeper.apache.org|http://zookeeper.apache.org/] Process: 7489 ExecStop=/usr/lib/zookeeper/bin/zkServer.sh stop /etc/zookeeper/conf/zoo.cfg (code=exited, status=0/SUCCESS) Main PID: 7502 (java) Tasks: 11 Memory: 20.0M CPU: 366ms CGroup: /system.slice/zk.service └─7502 java -Dzookeeper.log.dir=. -Dzookeeper.root.logger=INFO,CONSOLE -cp /usr/lib/zookeeper/bin/../build/classes:/usr/lib/zookeeper/bin/../build/lib/*.jar:/usr/lib/zookeeper/bin/../lib/slf4j-log4j12 Thoughts? -- This message was sent by Atlassian Jira (v8.3.4#803005)