documentcloud / cloud-crowd

Parallel Processing for the Rest of Us

Home Page:https://github.com/documentcloud/cloud-crowd/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failing Action Load

Contexter opened this issue · comments

Hi,

Doing this :

http://wiki.github.com/documentcloud/cloud-crowd/getting-started

I get this:

$ ~/config/cloud-crowd# crowd node
Starting CloudCrowd Node on port 9063...
/opt/ruby-1.8.7/lib/ruby/gems/1.8/gems/cloud-crowd-0.2.5/lib/cloud-crowd.rb:167:in `actions': One of your actions failed to load. Please ensure that the name of your action class can be deduced from the name of the file. ex: 'word_count.rb' => 'WordCount' (NameError)
uninitialized constant Module::ShakespeareWordCount
    from /opt/ruby-1.8.7/lib/ruby/gems/1.8/gems/cloud-crowd-0.2.5/lib/cloud_crowd/node.rb:70:in `initialize'
    from /opt/ruby-1.8.7/lib/ruby/gems/1.8/gems/sinatra-0.9.4/lib/sinatra/base.rb:893:in `new'
    from /opt/ruby-1.8.7/lib/ruby/gems/1.8/gems/sinatra-0.9.4/lib/sinatra/base.rb:893:in `new'
    from /opt/ruby-1.8.7/lib/ruby/gems/1.8/gems/cloud-crowd-0.2.5/bin/../lib/cloud_crowd/command_line.rb:115:in `start_node'
    from /opt/ruby-1.8.7/lib/ruby/gems/1.8/gems/cloud-crowd-0.2.5/bin/../lib/cloud_crowd/command_line.rb:104:in `run_node'
    from /opt/ruby-1.8.7/lib/ruby/gems/1.8/gems/cloud-crowd-0.2.5/bin/../lib/cloud_crowd/command_line.rb:42:in `initialize'
    from /opt/ruby-1.8.7/lib/ruby/gems/1.8/gems/cloud-crowd-0.2.5/bin/crowd:5:in `new'
    from /opt/ruby-1.8.7/lib/ruby/gems/1.8/gems/cloud-crowd-0.2.5/bin/crowd:5
    from /opt/ruby/bin/crowd:19:in `load'
    from /opt/ruby/bin/crowd:19

?? Am I missing something ??

Thanx!

It just looks like you're requesting an action that doesn't exist. The name of the built-in action is 'word_count', not 'shakespeare_word_count'.

Sorry for the confusion between the name of the script that launches the job and the name of the action itself -- I'll fix it.