sets Hadoop conf ClassLoader (#12738)

This commit is contained in:
Tejaswini Bandlamudi 2022-07-04 17:07:39 +05:30 committed by GitHub
parent e3128e3fa3
commit d559773a0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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.")) {