mirror of https://github.com/apache/druid.git
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…
Reference in New Issue