On the servers currently installed, the jre is installed as a dependency
of the zookeeper package. We should explicitely install it for kafka.
Related to T2790
Differential D4534
Kafka needs a jre to run vsellier on Nov 19 2020, 3:27 PM. Authored by
Details
On the servers currently installed, the jre is installed as a dependency Related to T2790 It just make the default-jre installation explicit: vsellier@kafka1 ~ % aptitude why default-jre-headless i zookeeper Depends default-jre-headless | java6-runtime-headless diff origin/production/journal0.internal.staging.swh.network current/journal0.internal.staging.swh.network ******************************************* + Anchor[java::begin:] ******************************************* + Anchor[java::end] ******************************************* + Exec[update-java-alternatives] => parameters => "command": "update-java-alternatives --set java-1.11.0-openjdk-amd64 --jre-h... "path": "/usr/bin:/usr/sbin:/bin:/sbin", "unless": "test /etc/alternatives/java -ef '/usr/lib/jvm/java-1.11.0-openjdk... ******************************************* + File_line[java-home-environment] => parameters => "line": "JAVA_HOME=/usr/lib/jvm/java-1.11.0-openjdk-amd64/", "match": "JAVA_HOME=", "path": "/etc/environment" ******************************************* + Package[java-common] => parameters => "ensure": "present" ******************************************* + Package[java] => parameters => "ensure": "present", "name": "openjdk-11-jre-headless" ******************************************* *** End octocatalog-diff on journal0.internal.staging.swh.network diff origin/production/kafka1.internal.softwareheritage.org current/kafka1.internal.softwareheritage.org ******************************************* + Anchor[java::begin:] ******************************************* + Anchor[java::end] ******************************************* + Exec[update-java-alternatives] => parameters => "command": "update-java-alternatives --set java-1.11.0-openjdk-amd64 --jre-h... "path": "/usr/bin:/usr/sbin:/bin:/sbin", "unless": "test /etc/alternatives/java -ef '/usr/lib/jvm/java-1.11.0-openjdk... ******************************************* + File_line[java-home-environment] => parameters => "line": "JAVA_HOME=/usr/lib/jvm/java-1.11.0-openjdk-amd64/", "match": "JAVA_HOME=", "path": "/etc/environment" ******************************************* + Package[java-common] => parameters => "ensure": "present" ******************************************* + Package[java] => parameters => "ensure": "present", "name": "openjdk-11-jre-headless" ******************************************* *** End octocatalog-diff on kafka1.internal.softwareheritage.org
Diff Detail
Event TimelineComment Actions We use the puppet java module in a bunch of other places, maybe it makes sense to directly import that (which would mean using include ::java)? Comment Actions Sure, I have only saw it on the jenkins agent so I was not sure. |