{"action":"created","issue":{"url":"https://api.github.com/repos/iconara/rubydoop/issues/35","labels_url":"https://api.github.com/repos/iconara/rubydoop/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/iconara/rubydoop/issues/35/comments","events_url":"https://api.github.com/repos/iconara/rubydoop/issues/35/events","html_url":"https://github.com/iconara/rubydoop/issues/35","id":109873027,"number":35,"title":"Could not load job setup script (\"word-count\")","user":{"login":"janpieper","id":426371,"avatar_url":"https://avatars.githubusercontent.com/u/426371?v=3","gravatar_id":"","url":"https://api.github.com/users/janpieper","html_url":"https://github.com/janpieper","followers_url":"https://api.github.com/users/janpieper/followers","following_url":"https://api.github.com/users/janpieper/following{/other_user}","gists_url":"https://api.github.com/users/janpieper/gists{/gist_id}","starred_url":"https://api.github.com/users/janpieper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janpieper/subscriptions","organizations_url":"https://api.github.com/users/janpieper/orgs","repos_url":"https://api.github.com/users/janpieper/repos","events_url":"https://api.github.com/users/janpieper/events{/privacy}","received_events_url":"https://api.github.com/users/janpieper/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-05T19:53:18Z","updated_at":"2015-10-06T07:05:19Z","closed_at":null,"body":"If I try to run the word-count example, I keep getting the following error and I don't know how to get it running...\r\n\r\n```\r\n$ git clone git@github.com:iconara/rubydoop.git\r\n$ cd rubydoop/examples/word_count\r\n$ bundle install\r\n$ rake package\r\n$ hadoop jar build/word_count.jar word-count conf/hadoop-local.xml README.md output                                                                        \r\nLoadError: no such file to load -- word-count\r\n  require at org/jruby/RubyKernel.java:1065\r\n  require at file:/tmp/hadoop-unjar2289886275803509919/lib/jruby-complete-1.7.12.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55\r\nException in thread \"main\" rubydoop.RubydoopRunnerException: Could not load job setup script (\"word-count\"): \"(LoadError) no such file to load -- word-count\"\r\n        at rubydoop.RubydoopJobRunner.run(RubydoopJobRunner.java:36)\r\n        at rubydoop.RubydoopJobRunner.run(RubydoopJobRunner.java:18)\r\n        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)\r\n        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)\r\n        at rubydoop.RubydoopJobRunner.main(RubydoopJobRunner.java:50)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n        at java.lang.reflect.Method.invoke(Method.java:497)\r\n        at org.apache.hadoop.util.RunJar.run(RunJar.java:221)\r\n        at org.apache.hadoop.util.RunJar.main(RunJar.java:136)\r\nCaused by: org.jruby.embed.InvokeFailedException: (LoadError) no such file to load -- word-count\r\n        at org.jruby.embed.internal.EmbedRubyObjectAdapterImpl.call(EmbedRubyObjectAdapterImpl.java:317)\r\n        at org.jruby.embed.internal.EmbedRubyObjectAdapterImpl.callMethod(EmbedRubyObjectAdapterImpl.java:249)\r\n        at org.jruby.embed.ScriptingContainer.callMethod(ScriptingContainer.java:1369)\r\n        at rubydoop.RubydoopJobRunner.run(RubydoopJobRunner.java:33)\r\n        ... 10 more\r\nCaused by: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- word-count\r\n        at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065)\r\n        at RUBY.require(file:/tmp/hadoop-unjar2289886275803509919/lib/jruby-complete-1.7.12.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55)\r\n```\r\n\r\n```\r\n$ ruby -v\r\njruby 1.7.12 (1.9.3p392) 2014-04-15 643e292 on Java HotSpot(TM) 64-Bit Server VM 1.8.0_60-b27 +indy [linux-amd64]\r\n```"},"comment":{"url":"https://api.github.com/repos/iconara/rubydoop/issues/comments/145763858","html_url":"https://github.com/iconara/rubydoop/issues/35#issuecomment-145763858","issue_url":"https://api.github.com/repos/iconara/rubydoop/issues/35","id":145763858,"user":{"login":"iconara","id":73330,"avatar_url":"https://avatars.githubusercontent.com/u/73330?v=3","gravatar_id":"","url":"https://api.github.com/users/iconara","html_url":"https://github.com/iconara","followers_url":"https://api.github.com/users/iconara/followers","following_url":"https://api.github.com/users/iconara/following{/other_user}","gists_url":"https://api.github.com/users/iconara/gists{/gist_id}","starred_url":"https://api.github.com/users/iconara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iconara/subscriptions","organizations_url":"https://api.github.com/users/iconara/orgs","repos_url":"https://api.github.com/users/iconara/repos","events_url":"https://api.github.com/users/iconara/events{/privacy}","received_events_url":"https://api.github.com/users/iconara/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T07:05:18Z","updated_at":"2015-10-06T07:05:18Z","body":"> Perhaps JAVA_HOME does not point to the JDK.\r\n> It is currently set to \"/usr/lib/jvm/java-8-oracle/jre\"\r\n\r\nYou don't have a JDK installed, only a JRE. You can find JDK 8 here: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html\r\n\r\nHowever, there's no need to do this if you just want to write your own Rubydoop jobs. It looks like you just want to use the latest version, and if that is the case [there's a prerelease of it on Rubygems](https://rubygems.org/gems/rubydoop/versions/2.0.0.pre0): `gem 'rubydoop', '= 2.0.0.pre0'`\r\n\r\nI'm not sure you want to use the latest version, though. Unless you absolutely need packaging with Puck you should use the latest stable version, 1.2.0."}}