Closed patsevanton closed 4 years ago
May be use openjdk from system repo?
If use:
- name: Install ZooKeeper cluster
hosts: zookeeper
roles:
- role: andrewrothstein.zookeeper
- role: andrewrothstein.zookeeper-cluster
Error:
Apr 19 05:50:19 zookeper-0 systemd: Stopped Apache Zookeeper.
Apr 19 05:50:19 zookeper-0 systemd: Started Apache Zookeeper.
Apr 19 05:50:19 zookeper-0 zkServer.sh: Error: JAVA_HOME is not set and java could not be found in PATH.
Apr 19 05:50:19 zookeper-0 systemd: zookeeper.service: main process exited, code=exited, status=1/FAILURE
Hello!
I use fix from this issue: https://github.com/andrewrothstein/ansible-zookeeper-cluster/issues/2
You can change EnvironmentFile in templates/zookeeper.service.j2
EnvironmentFile=-/usr/local/openjdk/jdk-13.0.2+8-jre/openjdk.env
Hello! Thanks for role.
CentOS 7
log install