This is happening because the Oracle Java JDK is no longer available in the
Ubuntu repositories (licensing issues). One way to work around this is to
override install_java.sh to install openjdk. See:
https://issues.apache.org/jira/browse/WHIRR-518 &
https://issues.apache.org/jira/browse/WHIRR-454.

For 0.8.0 we are going to either use jclouds ability to install th JDK or
switch to OpenJDK.

On Mon, Feb 20, 2012 at 10:20 AM, Ashwanth Kumar <
[email protected]> wrote:

> I am facing some strange problem here. Today I was trying to create a 14
> node Xtra-large instance cluster of Hadoop using Whirr. You can see the
> whirr config below
>
> # General Cluster name, type and provider
> whirr.cluster-name=awsxlargecluster
>
> whirr.instance-templates=1 hadoop-jobtracker+hadoop-namenode,13
> hadoop-datanode+hadoop-tasktracker
> whirr.provider=aws-ec2
>
> # Choosing a Xtra Large cluster
> whirr.hardware-id=m1.xlarge
>
> # AWS EC2 Settings and SSH Keys config
> # Access Key ID
> whirr.identity=XXXXXXXXXXXXXXXXXXXXXXXX
>
> # Secret Access Key
> whirr.credential=YYYYYYYYYYYYYYYYYYYYY
>
> whirr.private-key-file=${sys:user.home}/.ssh/id_rsa_whirr
> whirr.public-key-file=${sys:user.home}/.ssh/id_rsa_whirr.pub
>
> # Choosing the Hadoop Version as 0.20.205.0
> whirr.hadoop.version=0.20.205.0
>
>
> Though the cluster starts with these on the whirr.log
>
> Successfully executed configure script: [output=, error=chown: invalid
> user: `hadoop:hadoop'
> cp: target `/usr/local/hadoop/conf' is not a directory
> cp: cannot create regular file `/usr/local/hadoop/conf': No such file or
> directory
> chown: invalid user: `hadoop:hadoop'
> chown: invalid user: `hadoop:hadoop'
> chown: invalid user: `hadoop:hadoop'
> Unknown id: hadoop
> Unknown id: hadoop
> , exitCode=0]
> Successfully executed configure script: [output=, error=chown: invalid
> user: `hadoop:hadoop'
> cp: target `/usr/local/hadoop/conf' is not a directory
> cp: cannot create regular file `/usr/local/hadoop/conf': No such file or
> directory
> chown: invalid user: `hadoop:hadoop'
> chown: invalid user: `hadoop:hadoop'
> chown: invalid user: `hadoop:hadoop'
> Unknown id: hadoop
> Unknown id: hadoop
> , exitCode=0]
>
>
> When I looked into the /tmp/logs on the instances, I found these
>
> stderr.log
>
> E: Package sun-java6-jdk has no installation candidate
> /tmp/setup-amazon.sh: line 152: java: command not found
>
>
> stdout.log
>
> Get:1 http://security.ubuntu.com lucid-security Release.gpg [198B]
> Ign http://security.ubuntu.com/ubuntu/ lucid-security/main
> Translation-en_US
> Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe
> Translation-en_US
>  Ign http://security.ubuntu.com/ubuntu/ lucid-security/multiverse
> Translation-en_US
> Get:2 http://security.ubuntu.com lucid-security Release [57.3kB]
> Hit http://us-east-1.ec2.archive.ubuntu.com lucid Release.gpg
> Ign http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ lucid/main
> Translation-en_US
>  Ign http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ lucid/universe
> Translation-en_US
>  Ign http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ lucid/multiverse
> Translation-en_US
>  Get:3 http://us-east-1.ec2.archive.ubuntu.com lucid-updates Release.gpg
> [198B]
> Ign http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ lucid-updates/main
> Translation-en_US
> Ign http://us-east-1.ec2.archive.ubuntu.com/ubuntu/lucid-updates/universe 
> Translation-en_US
> Ign http://us-east-1.ec2.archive.ubuntu.com/ubuntu/lucid-updates/multiverse 
> Translation-en_US
> Hit http://us-east-1.ec2.archive.ubuntu.com lucid Release
> Get:4 http://us-east-1.ec2.archive.ubuntu.com lucid-updates Release
> [57.3kB]
> Hit http://us-east-1.ec2.archive.ubuntu.com lucid/main Packages
> Hit http://us-east-1.ec2.archive.ubuntu.com lucid/universe Packages
> Hit http://us-east-1.ec2.archive.ubuntu.com lucid/multiverse Packages
> Get:5 http://us-east-1.ec2.archive.ubuntu.com lucid/main Sources [659kB]
> Get:6 http://us-east-1.ec2.archive.ubuntu.com lucid/universe Sources
> [3,165kB]
>  Get:7 http://us-east-1.ec2.archive.ubuntu.com lucid/multiverse Sources
> [119kB]
> Get:8 http://us-east-1.ec2.archive.ubuntu.com lucid-updates/main Packages
> [563kB]
> Get:9 http://us-east-1.ec2.archive.ubuntu.com lucid-updates/universe
> Packages [268kB]
>  Get:10 http://us-east-1.ec2.archive.ubuntu.com lucid-updates/multiverse
> Packages [10.5kB]
>  Get:11 http://us-east-1.ec2.archive.ubuntu.com lucid-updates/main
> Sources [212kB]
> Get:12 http://us-east-1.ec2.archive.ubuntu.com lucid-updates/universe
> Sources [93.3kB]
> Get:13 http://us-east-1.ec2.archive.ubuntu.com lucid-updates/multiverse
> Sources [5,057B]
>  Get:14 http://security.ubuntu.com lucid-security/main Packages [377kB]
> Get:15 http://security.ubuntu.com lucid-security/universe Packages [124kB]
> Get:16 http://security.ubuntu.com lucid-security/multiverse Packages
> [4,556B]
> Get:17 http://security.ubuntu.com lucid-security/main Sources [116kB]
> Get:18 http://security.ubuntu.com lucid-security/universe Sources [34.4kB]
> Get:19 http://security.ubuntu.com lucid-security/multiverse Sources
> [1,760B]
> Get:20 http://archive.canonical.com lucid Release.gpg [198B]
> Ign http://archive.canonical.com/ubuntu/ lucid/partner Translation-en_US
> Get:21 http://archive.canonical.com lucid Release [8,215B]
> Get:22 http://archive.canonical.com lucid/partner Packages [12.9kB]
> Get:23 http://archive.canonical.com lucid/partner Sources [6,761B]
> Fetched 5,895kB in 3s (1,943kB/s)
> Reading package lists...
> Reading package lists...
> Building dependency tree...
> Reading state information...
> Package sun-java6-jdk is not available, but is referred to by another
> package.
> This may mean that the package is missing, has been obsoleted, or is only
> available from another source
>
>
>
> From this I am able to understand JDK is not getting installed, hence the
> Hadoop is not even getting downloaded in /usr/local/hadoop (default
> location). I use the latest stable version of whirr (0.70), I was able to
> run the large instances, small instances, etc. from the similar
> configuration and on the same whirr installation.
>
> Any help on this issue?
>
> --
>
> Ashwanth Kumar / ashwanthkumar.in
>
>
>

Reply via email to