Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add error handling for not getting jruby engine
  • Loading branch information
fujibee committed Jan 14, 2010
1 parent b51a4a3 commit bdea505
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Binary file modified lib/hadoop-ruby.jar
Binary file not shown.
2 changes: 2 additions & 0 deletions src/java/org/apache/hadoop/ruby/JRubyEvaluator.java
Expand Up @@ -26,6 +26,8 @@ public class JRubyEvaluator {

public JRubyEvaluator(JobConf conf) {
rubyEngine = new ScriptEngineManager().getEngineByName("jruby");
if (rubyEngine == null)
new RuntimeException("cannot get jruby engine");
scriptFileName = conf.get("mapred.ruby.script");
dslFileName = conf.get("mapred.ruby.dslfile");
}
Expand Down

0 comments on commit bdea505

Please sign in to comment.