Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Won't Fix
-
0.5.0
-
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.