Page MenuHomePhabricator

Install java 8 to stat1002
Closed, ResolvedPublic

Description

I was trying to run some java code on stat1002 but ran into the issue that we only have java 7 there. I had to go back a few point releases to get a version that would work on 7. Could of course make a local install of java 8 in my home dir, but I imagine more and more things will start needing java 8. Would be nice to make it available. Likely want to leave the alternatives pointed at java 7 to not break anything

Event Timeline

fgiunchedi triaged this task as Medium priority.Nov 30 2016, 2:10 AM

IIRC the alternatives should already prefer java-7 if both are installed, I'm not sure to which puppet class/role to add the package though (cc @Ottomata @elukey )

Hm hm.

openjdk-7-jdk is required in a few classes that get included on stat1002. As long as the default alternative isn't updated as consequence of doing a require_package('openjdk-8-jdk'0), then I think it would be safe to do so wherever it makes sense. @EBernhardson, what's your use case? If it is for generic number crunching / analysis work on stat boxes, then I think it would be safe to add this to the statistics::packages class.

I am specifically doing some machine learning exploration using RankLib, a java implementation of various ML ranking algorithms (that could perhaps be integrated to an elasticsearch plugin if this exploration works out). Basically number crunching.

Change 324679 had a related patch set uploaded (by Elukey):
Add openjdk-8-jdk to the list of statistics packages

https://gerrit.wikimedia.org/r/324679

Change 324679 merged by Elukey:
Add openjdk-8-jdk to the list of statistics packages

https://gerrit.wikimedia.org/r/324679

elukey claimed this task.

@EBernhardson:

elukey@stat1002:~$ update-alternatives --display java
java - manual mode
  link currently points to /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java - priority 1071
  slave java.1.gz: /usr/lib/jvm/java-7-openjdk-amd64/jre/man/man1/java.1.gz
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java - priority 1069
  slave java.1.gz: /usr/lib/jvm/java-8-openjdk-amd64/jre/man/man1/java.1.gz
Current 'best' version is '/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java'.

Should be good now! Closing, please re-open the task if anything is missing :)