Skip to content

Commit d79e8c0

Browse files
committed
Change a parent class loader of ExecutorURLClassLoader.
1 parent c6c09b6 commit d79e8c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/executor/Executor.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ private[spark] class Executor(
293293
* created by the interpreter to the search path
294294
*/
295295
private def createClassLoader(): ExecutorURLClassLoader = {
296-
val loader = this.getClass.getClassLoader
296+
val loader = Thread.currentThread().getContextClassLoader
297297

298298
// For each of the jars in the jarSet, add them to the class loader.
299299
// We assume each of the files has already been fetched.

0 commit comments

Comments
 (0)