Whirr
  1. Whirr
  2. WHIRR-435

sun-java6-jdk installation fails in install_java_deb() function on Ubuntu 11.10 AMI

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 0.5.0
    • Fix Version/s: 0.8.0
    • Component/s: service/cdh
    • Labels:
      None
    • Environment:

      Running Apache Whirr 0.5.0-cdh3u2 on Ubuntu 11.04

      Description

      Whirr fails to correctly setup a hadoop cluster because the installation of java fails on the Ubuntu 11.10 AMI. The cluster actually starts but Java and Hadoop are not present on the EC2 instances.

      Extract from whirr.log

      
      2011-11-17 16:15:19,063 DEBUG [jclouds.compute] (user thread 2) << stderr from setup-steve as ubuntu@122.248.231.156
      sun-java6-jre   shared/present-sun-dlj-v1-1     note
      '
      + apt-get -y install sun-java6-jdk
      E: Package 'sun-java6-jdk' has no installation candidate
      + echo 'export JAVA_HOME=/usr/lib/jvm/java-6-sun'
      + export JAVA_HOME=/usr/lib/jvm/java-6-sun
      + JAVA_HOME=/usr/lib/jvm/java-6-sun
      + java -version
      /tmp/setup-steve.sh: line 161: java: command not found
      + exit 1
      

      Here is my whirr.properties

      
      whirr.cluster-name=stevecluster 
      whirr.instance-templates=1 hadoop-jobtracker+hadoop-namenode,2 hadoop-datanode+hadoop-tasktracker 
      whirr.provider=aws-ec2
      whirr.location-id=ap-southeast-1a
      whirr.hardware-id=m1.small
      whirr.image-id=ap-southeast-1/ami-82047ed0
      whirr.identity=...
      whirr.credential=...
      whirr.private-key-file=/home/steve/.ssh/whirr
      whirr.public-key-file=/home/steve/.ssh/whirr.pub
      whirr.hadoop-install-function=install_cdh_hadoop
      whirr.hadoop-configure-function=configure_cdh_hadoop
      
      

      I've tried the same thing with the 11.04 image (ami-72255f20) and it works correctly.

      1. whirr.properties
        0.5 kB
        Steven Bruce
      2. whirr.log
        45 kB
        Steven Bruce
      3. install_java.sh.patch
        0.2 kB
        Jai Kumar Singh

        Activity

        Hide
        Jai Kumar Singh added a comment -

        I think repo(ppa:ferramroberto/java) need to be added for sun java as described in following url.
        http://superuser.com/questions/353983/how-do-i-install-the-sun-java-sdk-in-ubuntu-11-10-oneric

        install_java.sh should be change accordingly.

        --JK

        Show
        Jai Kumar Singh added a comment - I think repo(ppa:ferramroberto/java) need to be added for sun java as described in following url. http://superuser.com/questions/353983/how-do-i-install-the-sun-java-sdk-in-ubuntu-11-10-oneric install_java.sh should be change accordingly. --JK
        Hide
        Andrei Savu added a comment -

        Can you use WHIRR-454 as an workaround?

        Show
        Andrei Savu added a comment - Can you use WHIRR-454 as an workaround?
        Hide
        Andrei Savu added a comment -

        Closing. I think WHIRR-454 is a good enough workaround.

        Show
        Andrei Savu added a comment - Closing. I think WHIRR-454 is a good enough workaround.

          People

          • Assignee:
            Andrei Savu
            Reporter:
            Steven Bruce
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development