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

    https://github.com/apache/spark/pull/19643#discussion_r151585367
  
    --- Diff: core/src/main/scala/org/apache/spark/SparkContext.scala ---
    @@ -1838,12 +1852,21 @@ class SparkContext(config: SparkConf) extends 
Logging {
               case _ => path
             }
           }
    +
           if (key != null) {
             val timestamp = System.currentTimeMillis
             if (addedJars.putIfAbsent(key, timestamp).isEmpty) {
               logInfo(s"Added JAR $path at $key with timestamp $timestamp")
               postEnvironmentUpdate()
             }
    +
    +        if (addToCurrentClassLoader) {
    +          Utils.getContextOrSparkClassLoader match {
    +            case cl: MutableURLClassLoader => 
cl.addURL(Utils.resolveURI(path).toURL)
    --- End diff --
    
    Thanks @jerryshao. Will check through this concern within this weekend and 
be back.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to