Skip to content

Commit 13918d9

Browse files
committed
Includes configuration2 as a min fix for Hadoop 3+ for now
1 parent 558e767 commit 13918d9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

sql/hive/src/main/scala/org/apache/spark/sql/hive/client/IsolatedClientLoader.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,10 @@ private[hive] class IsolatedClientLoader(
177177

178178
protected def isSharedClass(name: String): Boolean = {
179179
val isHadoopClass =
180-
name.startsWith("org.apache.hadoop.") && !name.startsWith("org.apache.hadoop.hive.")
180+
name.startsWith("org.apache.hadoop.") && !name.startsWith("org.apache.hadoop.hive.") ||
181+
// Also, includes configuration2 as a min fix for Hadoop 3+ for now. This is failed
182+
// during class resolution. It is fine when 'sharesHadoopClasses' is disabled.
183+
name.startsWith("org.apache.commons.configuration2.")
181184

182185
name.startsWith("org.slf4j") ||
183186
name.startsWith("org.apache.log4j") || // log4j1.x

0 commit comments

Comments
 (0)