masatana opened a new pull request, #1301:
URL: https://github.com/apache/bigtop/pull/1301
<!--
Thanks for sending a pull request!
1. If this is your first time, please read our contributor guidelines:
https://cwiki.apache.org/confluence/display/BIGTOP/How+to+Contribute
2. Make sure your PR title starts with JIRA issue id, e.g.,
'BIGTOP-3638: Your PR title ...'.
-->
### Description of PR
https://issues.apache.org/jira/browse/BIGTOP-4263
We need to recreate `/run/zookeeper` directory when the OS restarted.
### How was this patch tested?
Applied this patch, built RPM files and install it on Rocky Linux 8.
Restarted the OS (container), then check if `systemctl start
zookeeper-server` works.
On Ubuntu 24.04 (aarch64):
```
$ ./gradlew allclean zookeeper-pkg-ind repo-ind -POS=rockylinux-8
$ cd provisioner/docker/
$ ./docker-hadoop.sh --enable-local-repo --disable-gpg-check
--docker-compose-plugin -C config_rockylinux-8.yaml -F
docker-compose-cgroupv2.yml --stack zookeeper -c 1
$ # `docker ps` to get container_id, and `docker restart $container_id` to
restart it.
$ ./docker-hadoop.sh -dcp --exec 1 systemctl status zookeeper-server
● zookeeper-server.service - ZooKeeper is a centralized service for
maintaining configuration information, naming, providing distributed
synchronization>
Loaded: loaded (/usr/lib/systemd/system/zookeeper-server.service; static;
vendor preset: disabled)
Active: inactive (dead)
Docs: https://zookeeper.apache.org/
$ ./docker-hadoop.sh -dcp --exec 1 systemctl start zookeeper-server
$ ./docker-hadoop.sh -dcp --exec 1 systemctl status zookeeper-server
● zookeeper-server.service - ZooKeeper is a centralized service for
maintaining configuration information, naming, providing distributed
synchronization>
Loaded: loaded (/usr/lib/systemd/system/zookeeper-server.service; static;
vendor preset: disabled)
Active: active (running) since Tue 2024-11-12 21:45:44 UTC; 5s ago
Docs: https://zookeeper.apache.org/
Process: 43 ExecStart=/usr/bin/zookeeper-server start (code=exited,
status=0/SUCCESS)
Main PID: 76 (java)
Tasks: 41 (limit: 5099)
Memory: 139.7M
CGroup: /system.slice/zookeeper-server.service
└─76
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.432.b06-2.el8.aarch64/bin/java
-Dzookeeper.datadir.autocreate=false -Dzookeeper.log.dir=/var/log/z>
Nov 12 21:45:43 ddb379a52eb1 systemd[1]: Starting ZooKeeper is a centralized
service for maintaining configuration information, naming, providing distri>
Nov 12 21:45:43 ddb379a52eb1 zookeeper-server[58]: ZooKeeper JMX enabled by
default
Nov 12 21:45:43 ddb379a52eb1 zookeeper-server[58]: Using config:
/etc/zookeeper/conf/zoo.cfg
Nov 12 21:45:44 ddb379a52eb1 zookeeper-server[58]: Starting zookeeper ...
STARTED
Nov 12 21:45:44 ddb379a52eb1 systemd[1]: Started ZooKeeper is a centralized
service for maintaining configuration information, naming, providing distrib
```
### For code changes:
- [x] Does the title or this PR starts with the corresponding JIRA issue id
(e.g. 'BIGTOP-3638. Your PR title ...')?
- [x] Make sure that newly added files do not have any licensing issues.
When in doubt refer to https://www.apache.org/licenses/
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]