Whirr
  1. Whirr
  2. WHIRR-521

Backport InstallJDK functionality from jclouds 1.4.0

    Details

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

      Description

      As discussed on the dev mailing list, we should introduce a better way of installing sun/oracle-java.

      http://mail-archives.apache.org/mod_mbox/whirr-dev/201202.mbox/%3CCAHZL8y_YUAsqQuVDKSZ8dYguvu8nJ3KRJvGrG7Fgg7SpHkG0xw%40mail.gmail.com%3E

      Because the jump to jclouds-1.4.0 is too big for 0.7.1, we can just copy the script into install_java.sh

      1. java_on_path.patch
        5 kB
        Marco Didonna
      2. WHIRR-521.patch
        15 kB
        Andrei Savu
      3. WHIRR-521.patch
        23 kB
        Andrei Savu
      4. WHIRR-521.patch
        7 kB
        Adrian Cole

        Activity

        Hide
        Andrei Savu added a comment -

        Added this on the roadmap for 0.7.1 - Karel are you planning to give it a try this week?

        Show
        Andrei Savu added a comment - Added this on the roadmap for 0.7.1 - Karel are you planning to give it a try this week?
        Hide
        Adrian Cole added a comment -

        tried on cassandra and zookeeper (aws-ec2, cloudservers-uk)

        Show
        Adrian Cole added a comment - tried on cassandra and zookeeper (aws-ec2, cloudservers-uk)
        Hide
        Marco Didonna added a comment -

        Why jdk7? as far as I know it's not officially supported...

        Show
        Marco Didonna added a comment - Why jdk7? as far as I know it's not officially supported...
        Hide
        Adrian Cole added a comment -

        @Marco well, the title of the issues is to backport InstallJDK from jclouds 1.4.0 InstallJDK from jclouds 1.4.0 installs JDK 7

        depending on what you mean by support. Oracle supports JDK7 from last year and JDK6 is already fast approaching EOL: http://www.oracle.com/technetwork/java/eol-135779.html

        Show
        Adrian Cole added a comment - @Marco well, the title of the issues is to backport InstallJDK from jclouds 1.4.0 InstallJDK from jclouds 1.4.0 installs JDK 7 depending on what you mean by support. Oracle supports JDK7 from last year and JDK6 is already fast approaching EOL: http://www.oracle.com/technetwork/java/eol-135779.html
        Hide
        Andrei Savu added a comment -

        Thanks Adrian! I will do a bit of cleanup work and if CDH works as expected commit.

        Show
        Andrei Savu added a comment - Thanks Adrian! I will do a bit of cleanup work and if CDH works as expected commit.
        Hide
        Marco Didonna added a comment -

        by support I mean supported by the hadoop stack, again as far as I know the only fully tested jdk is jdk6. For what concerns the EOL I'm aware of that and it has postponed.

        Show
        Marco Didonna added a comment - by support I mean supported by the hadoop stack, again as far as I know the only fully tested jdk is jdk6. For what concerns the EOL I'm aware of that and it has postponed.
        Hide
        Adrian Cole added a comment -

        @marco gotcha. well, I suppose Whirr can play an active part on testing hadoop w/JDK 7 now!

        Show
        Adrian Cole added a comment - @marco gotcha. well, I suppose Whirr can play an active part on testing hadoop w/JDK 7 now!
        Hide
        Ashish Paliwal added a comment -

        +1

        Show
        Ashish Paliwal added a comment - +1
        Hide
        Adrian Cole added a comment -

        p.s. the EOL updated timeline is still november of this year, so I'm only being half-cheeky in saying we should help facilitate projects to move to modern JDKs. Probably better for a mail list post/blog, but Whirr seems really good for this purpose.

        Show
        Adrian Cole added a comment - p.s. the EOL updated timeline is still november of this year, so I'm only being half-cheeky in saying we should help facilitate projects to move to modern JDKs. Probably better for a mail list post/blog, but Whirr seems really good for this purpose.
        Hide
        Andrei Savu added a comment -

        I am attaching a slightly updated version of the patch that also includes some changes I've done in WHIRR-518. Still needs testing.

        Show
        Andrei Savu added a comment - I am attaching a slightly updated version of the patch that also includes some changes I've done in WHIRR-518 . Still needs testing.
        Hide
        Andrei Savu added a comment -

        For some unknown reasons CDH HBase still fails to start ...

        Show
        Andrei Savu added a comment - For some unknown reasons CDH HBase still fails to start ...
        Hide
        Andrei Savu added a comment -

        Updated patch to add the oracle jdk7 installer only as an option - openjdk is still the default. Please review for inclusion!

        Show
        Andrei Savu added a comment - Updated patch to add the oracle jdk7 installer only as an option - openjdk is still the default. Please review for inclusion!
        Show
        Karel Vervaeke added a comment - Just committed http://svn.apache.org/viewvc?view=revision&revision=1292718
        Hide
        Andrei Savu added a comment -

        Marking as fixed. Thanks Karel!

        Show
        Andrei Savu added a comment - Marking as fixed. Thanks Karel!
        Hide
        Marco Didonna added a comment -

        little patch to add the $JAVA_HOME/bin to the $PATH. Little modifications to some recipes in order to warn user about the default openjdk and offer the option to install oracle jdk.
        Worked for me on ec2

        Show
        Marco Didonna added a comment - little patch to add the $JAVA_HOME/bin to the $PATH. Little modifications to some recipes in order to warn user about the default openjdk and offer the option to install oracle jdk. Worked for me on ec2

          People

          • Assignee:
            Adrian Cole
            Reporter:
            Karel Vervaeke
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development