Allow hadoop configurations using runtime properties. (#4189)

This commit is contained in:
Akash Dwivedi 2017-04-25 11:35:27 -07:00 committed by Nishant Bangarwa
parent 3b92220015
commit a2419654ea
1 changed files with 2 additions and 2 deletions

View File

@ -118,9 +118,9 @@ public class HdfsStorageDruidModule implements DruidModule
}
if (props != null) {
for (String propName : System.getProperties().stringPropertyNames()) {
for (String propName : props.stringPropertyNames()) {
if (propName.startsWith("hadoop.")) {
conf.set(propName.substring("hadoop.".length()), System.getProperty(propName));
conf.set(propName.substring("hadoop.".length()), props.getProperty(propName));
}
}
}