mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Minor review comments
This commit is contained in:
parent
4f6bd04bf7
commit
7e9dffb984
1 changed files with 3 additions and 1 deletions
|
|
@ -92,6 +92,8 @@ public class HbaseInterpreter extends Interpreter {
|
|||
scriptingContainer.setOutput(this.writer);
|
||||
this.scriptingContainer.setLoadPaths(paths);
|
||||
scriptingContainer.setCompatVersion(org.jruby.CompatVersion.RUBY1_9);
|
||||
|
||||
// The following block is used for manual tests only.
|
||||
if (Boolean.parseBoolean(getProperty("hbase.irb.load"))) {
|
||||
try {
|
||||
InputStream in = getClass().getResourceAsStream("/hbase/bin/hirb.rb");
|
||||
|
|
@ -120,7 +122,7 @@ public class HbaseInterpreter extends Interpreter {
|
|||
logger.debug(writer.toString());
|
||||
return new InterpreterResult(InterpreterResult.Code.SUCCESS, writer.getBuffer().toString());
|
||||
} catch (Throwable t) {
|
||||
logger.error("Can not run " + cmd, t);
|
||||
logger.error("Can not run '" + cmd + "'", t);
|
||||
return new InterpreterResult(InterpreterResult.Code.ERROR, t.getMessage());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue