Uploaded image for project: 'Apache Whirr (retired)'
  1. Apache Whirr (retired)
  2. WHIRR-454

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

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: 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
        savu.andrei 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
        savu.andrei 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.
        Hide
        piccolbo Antonio Piccolboni added a comment -

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

        Show
        piccolbo Antonio Piccolboni added a comment - Great, thanks, I thought closing this meant "end of story".
        Hide
        savu.andrei 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
        savu.andrei 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
        piccolbo 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
        piccolbo 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
        savu.andrei Andrei Savu added a comment -

        Committed to 0.7 branch.

        Show
        savu.andrei Andrei Savu added a comment - Committed to 0.7 branch.
        Hide
        savu.andrei Andrei Savu added a comment -

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

        Show
        savu.andrei Andrei Savu added a comment - Marking as fixed again. This patch was committed fine to svn-master.
        Hide
        savu.andrei 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
        savu.andrei 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
        savu.andrei Andrei Savu added a comment -

        Committed to trunk. Thanks Karel!

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

        +1 & update the title to match the change.

        Show
        savu.andrei Andrei Savu added a comment - +1 & update the title to match the change.
        Hide
        karel1980 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
        karel1980 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
        karel1980 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
        karel1980 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
        adrian@jclouds.org Adrian Cole (Inactive) 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@jclouds.org Adrian Cole (Inactive) 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
        karel1980 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
        karel1980 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
        karel1980 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
        karel1980 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
        savu.andrei 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
        savu.andrei 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?

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development