Set hbase.ruby.sources in system properties

This commit is contained in:
Rajat Venkatesh 2016-01-31 14:44:26 +05:30
parent 57ebad8d4c
commit 69755ad7b3

View file

@ -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());