Uploaded image for project: '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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 0.5.0
    • 0.8.0
    • service/cdh
    • None
    • 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.

      Attachments

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

        Activity

          People

            savu.andrei Andrei Savu
            steven.bruce Steven Bruce
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: