Whirr
  1. Whirr
  2. WHIRR-454

Allow openjdk to be installed as an alternative to sun-java-6

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.7.1
    • Component/s: core
    • Labels:

      Description

      sun-java-6 will be removed from the Ubuntu partner repositories (actual date TBD).
      We change the install_java implementation before this happens.

      Source:
      http://www.omgubuntu.co.uk/2011/12/java-to-be-removed-from-ubuntu-uninstalled-from-user-machines/

      1. WHIRR-454.patch
        12 kB
        Karel Vervaeke

        Activity

        Hide
        Andrei Savu added a comment -

        Thanks Karel for the heads-up. I think we should considering looking into using Puppet or Chef for this task. What do you think?

        Show
        Andrei Savu added a comment - Thanks Karel for the heads-up. I think we should considering looking into using Puppet or Chef for this task. What do you think?
        Hide
        Karel Vervaeke added a comment -

        I absolutely agree. I have already been daydreaming about converting whirr services into a great set of puppet modules or chef recipes.
        There's already tons of good sources on github to start from.

        Show
        Karel Vervaeke added a comment - I absolutely agree. I have already been daydreaming about converting whirr services into a great set of puppet modules or chef recipes. There's already tons of good sources on github to start from.
        Hide
        Karel Vervaeke added a comment -

        OTOH, it may be interesting to see how far we can get just installing the default packages (favouring low hanging fruit and all that).
        For Ubuntu (Starting with Lucid) there's the openjdk-6-jdk package). I'm not sure for other deb-based distributions.

        Show
        Karel Vervaeke added a comment - OTOH, it may be interesting to see how far we can get just installing the default packages (favouring low hanging fruit and all that). For Ubuntu (Starting with Lucid) there's the openjdk-6-jdk package). I'm not sure for other deb-based distributions.
        Hide
        Adrian Cole added a comment -

        setting up puppet or chef just to install jdk is overkill, imho. either one requires ruby, etc. and will slow bootstrap unless you are using them for something else. If you are using puppet or chef, then would make sense to smartly switch to their java, or at least have an option to.

        Show
        Adrian Cole added a comment - setting up puppet or chef just to install jdk is overkill, imho. either one requires ruby, etc. and will slow bootstrap unless you are using them for something else. If you are using puppet or chef, then would make sense to smartly switch to their java, or at least have an option to.
        Hide
        Karel Vervaeke added a comment -

        Small update on this bit of news: http://www.omgubuntu.co.uk/2012/01/canonical-reverse-java-uninstall-decision/
        From the article:
        Sun JDK packages will be removed from the Ubuntu partner archive on February 16th 2012 [...] Ubuntu users who don’t rely on the official package are being urged to swap over to alternatives, such as the Oracle-endorsed OpenJDK.

        For now, I'll see if it works with the openjdk-6-jdk package and report how that goes.

        Show
        Karel Vervaeke added a comment - Small update on this bit of news: http://www.omgubuntu.co.uk/2012/01/canonical-reverse-java-uninstall-decision/ From the article: Sun JDK packages will be removed from the Ubuntu partner archive on February 16th 2012 [...] Ubuntu users who don’t rely on the official package are being urged to swap over to alternatives, such as the Oracle-endorsed OpenJDK. For now, I'll see if it works with the openjdk-6-jdk package and report how that goes.
        Hide
        Karel Vervaeke added a comment -

        This patch lets you install openjdk instead of sun-java-6, by setting

        whirr.java.install-function=install_openjdk

        Tested with zookeeper on lucid/byon, centos 5.7/byon, lucid/ec2.

        Some users may still prefer sun-jdk (http://goo.gl/DgPxU) so we should still have an alternative there.

        Show
        Karel Vervaeke added a comment - This patch lets you install openjdk instead of sun-java-6, by setting whirr.java.install-function=install_openjdk Tested with zookeeper on lucid/byon, centos 5.7/byon, lucid/ec2. Some users may still prefer sun-jdk ( http://goo.gl/DgPxU ) so we should still have an alternative there.
        Hide
        Andrei Savu added a comment -

        +1 & update the title to match the change.

        Show
        Andrei Savu added a comment - +1 & update the title to match the change.
        Hide
        Andrei Savu added a comment -

        Committed to trunk. Thanks Karel!

        Show
        Andrei Savu added a comment - Committed to trunk. Thanks Karel!
        Hide
        Andrei Savu added a comment -

        It seems like something strange is happening with SVN. I'm reopening this just to make it gets committed.

        Show
        Andrei Savu added a comment - It seems like something strange is happening with SVN. I'm reopening this just to make it gets committed.
        Hide
        Andrei Savu added a comment -

        Marking as fixed again. This patch was committed fine to svn-master.

        Show
        Andrei Savu added a comment - Marking as fixed again. This patch was committed fine to svn-master.
        Hide
        Andrei Savu added a comment -

        Committed to 0.7 branch.

        Show
        Andrei Savu added a comment - Committed to 0.7 branch.
        Hide
        Antonio Piccolboni added a comment -

        I must be missing something, but read this: "OpenJDK cannot be used to compile hadoop mapreduce code in branch-0.23 and beyond, please use other JDKs." (from http://wiki.apache.org/hadoop/HadoopJavaVersions). Does that mean that as soon as we make the switch to next gen there's no more workaround?

        Show
        Antonio Piccolboni added a comment - I must be missing something, but read this: "OpenJDK cannot be used to compile hadoop mapreduce code in branch-0.23 and beyond, please use other JDKs." (from http://wiki.apache.org/hadoop/HadoopJavaVersions ). Does that mean that as soon as we make the switch to next gen there's no more workaround?
        Hide
        Andrei Savu added a comment -

        Our plan is to only have openjdk as a backup in Whirr - we are working on finding a reliable way of installing Oracle JDK.

        Show
        Andrei Savu added a comment - Our plan is to only have openjdk as a backup in Whirr - we are working on finding a reliable way of installing Oracle JDK.
        Hide
        Antonio Piccolboni added a comment -

        Great, thanks, I thought closing this meant "end of story".

        Show
        Antonio Piccolboni added a comment - Great, thanks, I thought closing this meant "end of story".
        Hide
        Andrei Savu added a comment -

        No It's just annoying that we have to go through all this but I'm confident we will find a good solution pretty soon.

        Show
        Andrei Savu added a comment - No It's just annoying that we have to go through all this but I'm confident we will find a good solution pretty soon.

          People

          • Assignee:
            Karel Vervaeke
            Reporter:
            Karel Vervaeke
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development