Github user vanzin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22192#discussion_r214486075
  
    --- Diff: core/src/main/scala/org/apache/spark/executor/Executor.scala ---
    @@ -136,6 +136,15 @@ private[spark] class Executor(
       // for fetching remote cached RDD blocks, so need to make sure it uses 
the right classloader too.
       env.serializerManager.setDefaultClassLoader(replClassLoader)
     
    +  private val pluginList = conf.get(EXECUTOR_PLUGINS)
    +  if (pluginList != Nil) logDebug(s"Loading the following plugins: 
${pluginList.mkString(", ")}")
    +  // Load executor plugins
    +  Thread.currentThread().setContextClassLoader(replClassLoader)
    +  private val executorPlugins =
    +    Utils.loadExtensions(classOf[ExecutorPlugin], pluginList, conf)
    +  executorPlugins.foreach(_.init())
    +  if (pluginList != Nil) logDebug("Finished loading plugins")
    --- End diff --
    
    Same.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to