This is an automated email from the ASF dual-hosted git repository.
abhishek pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/master by this push:
new d559773a0e sets Hadoop conf ClassLoader (#12738)
d559773a0e is described below
commit d559773a0e3679a6894390b17380332b84843f57
Author: Tejaswini Bandlamudi <[email protected]>
AuthorDate: Mon Jul 4 17:07:39 2022 +0530
sets Hadoop conf ClassLoader (#12738)
---
.../java/org/apache/druid/data/input/orc/OrcExtensionsModule.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/extensions-core/orc-extensions/src/main/java/org/apache/druid/data/input/orc/OrcExtensionsModule.java
b/extensions-core/orc-extensions/src/main/java/org/apache/druid/data/input/orc/OrcExtensionsModule.java
index 110ac82dc0..d39b757540 100644
---
a/extensions-core/orc-extensions/src/main/java/org/apache/druid/data/input/orc/OrcExtensionsModule.java
+++
b/extensions-core/orc-extensions/src/main/java/org/apache/druid/data/input/orc/OrcExtensionsModule.java
@@ -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.")) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]