mirror of https://github.com/apache/druid.git
Allow hadoop configurations using runtime properties. (#4189)
This commit is contained in:
parent
3b92220015
commit
a2419654ea
|
@ -118,9 +118,9 @@ public class HdfsStorageDruidModule implements DruidModule
|
||||||
}
|
}
|
||||||
|
|
||||||
if (props != null) {
|
if (props != null) {
|
||||||
for (String propName : System.getProperties().stringPropertyNames()) {
|
for (String propName : props.stringPropertyNames()) {
|
||||||
if (propName.startsWith("hadoop.")) {
|
if (propName.startsWith("hadoop.")) {
|
||||||
conf.set(propName.substring("hadoop.".length()), System.getProperty(propName));
|
conf.set(propName.substring("hadoop.".length()), props.getProperty(propName));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue