mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Set hbase.ruby.sources in system properties
This commit is contained in:
parent
57ebad8d4c
commit
69755ad7b3
1 changed files with 4 additions and 0 deletions
|
|
@ -97,6 +97,10 @@ public class HbaseInterpreter extends Interpreter {
|
|||
List<String> paths = new ArrayList<>(Arrays.asList(abs_ruby_src.toAbsolutePath().toString()));
|
||||
this.scriptingContainer.setLoadPaths(paths);
|
||||
|
||||
// hirb.rb:41 requires the following system property to be set.
|
||||
Properties sysProps = System.getProperties();
|
||||
sysProps.setProperty("hbase.ruby.sources", abs_ruby_src.toString());
|
||||
|
||||
Path abs_hirb_path = Paths.get(hbase_home, "bin/hirb.rb");
|
||||
try {
|
||||
FileInputStream fis = new FileInputStream(abs_hirb_path.toFile());
|
||||
|
|
|
|||
Loading…
Reference in a new issue