Open swarooppatra opened 2 years ago
@swarooppatra Could you, please, confirm that jdk-1.8 was installed as a dependency and the only issue is calling the update-alternatives
like we already do for Debian variants?
I doubt jdk-8 was installed as part of ansible tasks but jdk-8 comes preinstalled in Amazon Linux. I just ran update-alternatives
to change default java to jdk-8 which fixed the issue.
If it comes pre-installed naturally it doesn't need to be installed again.
@fee-mendes This issue can be fixed as a part of "uniting installation flows" since we already call update-alternaticed
for Debian.
I created a cluster on Amazon Linux using Ansible playbook. But one of the task failed at https://github.com/scylladb/scylla-ansible-roles/blob/master/ansible-scylla-node/tasks/common.yml#L261.
This task checks status of node using nodetool command. But on Amazon Linux nodetool command fails with below error
Reason: Default java on Amazon linux is java-17-amazon-corretto. I think
scylla-jmx
process doesn't work on Java 17.Fix: Using
update-alternatives
change default java to JDK 1.8.Please update Ansible script to check java version and update default java to 1.8 if available. If Java 1.8 is not available install and use as default java.