Hadoop cookbook error


#1

I am trying to run hadoop cookbook from hosted chef on Ubuntu 12.04 and got
this error. This is the 2nd time I ran. When I ran it the first time, I got a
different error. Unfortunately I didn’t save the first error. It’s something
related to download error from “http://archive.cloudera.com/debian/dists
precise”.

I follow this README and set the attributes. Not sure if I did it right.
https://github.com/opscode/cookbooks/tree/master/hadoop

admuser@hadoop53:~/chef-repo$ cat cookbooks/hadoop/attributes/default.rb
default[:hadoop][:mirror_url] = "http://www.trieuvan.com/apache/hadoop/core/"
default[:hadoop][:version] = "1.0.3"
default[:hadoop][:uid] = "admuser"
default[:hadoop][:gid] ="admuser"
default[:hadoop][:java_home] = “/usr/lib/jvm/java-1.6.0-openjdk-amd64/”

How to submit issue with cookbooks? I don’t see any ticket tab on github.

This is my first time on Chef. Please help! Thanks!

admuser@hadoop53:~/chef-repo$ sudo chef-client
’[Wed, 22 Aug 2012 10:12:20 -0700] INFO: *** Chef 10.12.0 ***
[Wed, 22 Aug 2012 10:12:22 -0700] INFO: Run List is [recipe[hadoop]]
[Wed, 22 Aug 2012 10:12:22 -0700] INFO: Run List expands to [hadoop]
[Wed, 22 Aug 2012 10:12:22 -0700] INFO: Starting Chef Run for hadoop53
[Wed, 22 Aug 2012 10:12:22 -0700] INFO: Running start handlers
[Wed, 22 Aug 2012 10:12:22 -0700] INFO: Start handlers complete.
[Wed, 22 Aug 2012 10:12:24 -0700] INFO: Loading cookbooks [hadoop, java]
[Wed, 22 Aug 2012 10:12:24 -0700] INFO: Processing
ruby_block[set-env-java-home] action create (java::openjdk line 36)
[Wed, 22 Aug 2012 10:12:24 -0700] INFO: ruby_block[set-env-java-home] called
[Wed, 22 Aug 2012 10:12:24 -0700] INFO: Processing
ruby_block[update-java-alternatives] action nothing (java::openjdk line 43)
[Wed, 22 Aug 2012 10:12:24 -0700] INFO: Processing package[openjdk-6-jdk]
action install (java::openjdk line 80)
[Wed, 22 Aug 2012 10:12:24 -0700] INFO: Processing package[sun-java6-jdk]
action purge (java::default line 25)
[Wed, 22 Aug 2012 10:12:24 -0700] INFO: Processing package[sun-java6-bin]
action purge (java::default line 25)
[Wed, 22 Aug 2012 10:12:24 -0700] INFO: Processing package[sun-java6-jre]
action purge (java::default line 25)
[Wed, 22 Aug 2012 10:12:24 -0700] INFO: Processing execute[apt-get update]
action nothing (hadoop::default line 22)
[Wed, 22 Aug 2012 10:12:24 -0700] INFO: Processing
template[/etc/apt/sources.list.d/cloudera.list] action create (hadoop::default
line 26)
[Wed, 22 Aug 2012 10:12:24 -0700] INFO: Processing execute[curl -s
http://archive.cloudera.com/debian/archive.key | apt-key add -] action run
(hadoop::default line 33)
[Wed, 22 Aug 2012 10:12:24 -0700] INFO: Processing package[hadoop] action
install (hadoop::default line 37)
[Wed, 22 Aug 2012 10:12:24 -0700] ERROR: package[hadoop] (hadoop::default line
37) has had an error
[Wed, 22 Aug 2012 10:12:24 -0700] ERROR: package[hadoop]
(/var/chef/cache/cookbooks/hadoop/recipes/default.rb:37:in from_file') had an error: package[hadoop] (hadoop::default line 37) had an error: Chef::Exceptions::Package: No version specified, and no candidate version available for hadoop /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/provider/package.rb:50:inaction_install’
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource.rb:454:in
run_action' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/runner.rb:49:inrun_action’
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/runner.rb:85:in
block (2 levels) in converge' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/runner.rb:85:ineach’
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/runner.rb:85:in
block in converge' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource_collection.rb:94:inblock in execute_each_resource’
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource_collection/stepable_iterator.rb:116:in
call' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource_collection/stepable_iterator.rb:116:incall_iterator_block’
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource_collection/stepable_iterator.rb:85:in
step' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource_collection/stepable_iterator.rb:104:initerate’
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource_collection/stepable_iterator.rb:55:in
each_with_index' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/resource_collection.rb:92:inexecute_each_resource’
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/runner.rb:80:in
converge' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/client.rb:330:inconverge’
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/client.rb:163:in
run' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/application/client.rb:254:inblock in run_application’
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/application/client.rb:241:in
loop' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/application/client.rb:241:inrun_application’
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/application.rb:70:in
run' /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/bin/chef-client:26:in<top (required)>’
/usr/bin/chef-client:19:in load' /usr/bin/chef-client:19:in'
[Wed, 22 Aug 2012 10:12:24 -0700] ERROR: Running exception handlers
[Wed, 22 Aug 2012 10:12:24 -0700] FATAL: Saving node information to
/var/chef/cache/failed-run-data.json
[Wed, 22 Aug 2012 10:12:24 -0700] ERROR: Exception handlers complete
[Wed, 22 Aug 2012 10:12:24 -0700] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
[Wed, 22 Aug 2012 10:12:24 -0700] FATAL: Chef::Exceptions::package:
package[hadoop] (hadoop::default line 37) had an error:
Chef::Exceptions::package: No version specified, and no candidate version
available for hadoop