Open erikgb opened 1 year ago
We managed to work around this issue by overriding a few things in our inventory:
redhat_java_package_name: java-17-openjdk
# This is (part of) a workaround for https://github.com/confluentinc/cp-ansible/issues/1241
redhat_java_home_path: /usr/lib/jvm/jre-17
kafka_broker_service_environment_overrides:
JAVA_HOME: "{{ redhat_java_home_path }}"
zookeeper_service_environment_overrides:
JAVA_HOME: "{{ redhat_java_home_path }}"
We only provision brokers and zookeepers (on RHEL) with cp-ansible. This can definitely be improved!
This seem still an issue - I can imagine with a lot of people now moving finally away from Java 8, due to deprecation - managing an automated Java Upgrade would really be an useful QoL improvement.
Describe the issue We have several clusters provisioned with cp-ansible, and all clusters are currently running with Java 11. With the release of Confluent Platform 7.3, we notice that Java 17 is supported and recommended, so we want to upgrade to Java 17.
This turns out to be more difficult than expected, since it seems like cp-ansible only support first time install of Java. As cp-ansible runs all components with the default Java installed on the system, we have to add additional logic to modify the default Java, which we prefer to avoid.
IMO it would be a lot better if cp-ansible did not rely on the default Java version installed, but instead included a more specific path in the component service wrappers.
To Reproduce
Expected behaviour
All components are updated/restarted, and runs with the Java version specified in the inventory.
Inventory File
Maybe not that relevant, but we have attempted to adjust the following variables:
redhat_java_package_name
,custom_java_path
andinstall_java
without being able to achieve the desired outcome.Logs
N/A
Environment (please complete the following information):
Additional context Add any other context about the problem here.