mirror of
https://github.com/apache/druid.git
synced 2025-02-17 07:25:02 +00:00
sets Hadoop conf ClassLoader (#12738)
This commit is contained in:
parent
e3128e3fa3
commit
d559773a0e
@ -62,6 +62,10 @@ public class OrcExtensionsModule implements DruidModule
|
||||
// to properly initialize everything
|
||||
|
||||
final Configuration conf = new Configuration();
|
||||
|
||||
// Set explicit CL. Otherwise it'll try to use thread context CL, which may not have all of our dependencies.
|
||||
conf.setClassLoader(getClass().getClassLoader());
|
||||
|
||||
if (props != null) {
|
||||
for (String propName : props.stringPropertyNames()) {
|
||||
if (propName.startsWith("hadoop.")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user