Apache Whirr (retired)
  1. Apache Whirr (retired)
  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. install_java.sh.patch
        0.2 kB
        Jai Kumar Singh
      2. whirr.log
        45 kB
        Steven Bruce
      3. whirr.properties
        0.5 kB
        Steven Bruce

        Activity

        Steven Bruce created issue -
        Steven Bruce made changes -
        Field Original Value New Value
        Attachment whirr.log [ 12504033 ]
        Steven Bruce made changes -
        Attachment whirr.properties [ 12504034 ]
        Andrei Savu made changes -
        Fix Version/s 0.8.0 [ 12318880 ]
        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
        Jai Kumar Singh made changes -
        Attachment install_java.sh.patch [ 12511021 ]
        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.
        Andrei Savu made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Andrei Savu [ savu.andrei ]
        Resolution Won't Fix [ 2 ]
        Tom White made changes -
        Fix Version/s 0.8.0 [ 12321649 ]
        Fix Version/s 0.8.0-alpha.1 [ 12318880 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        82d 17h 44m 1 Andrei Savu 07/Feb/12 23:51

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development