mirror of
https://github.com/apache/druid.git
synced 2025-02-17 07:25:02 +00:00
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…
x
Reference in New Issue
Block a user