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

    https://github.com/apache/spark/pull/21533#discussion_r198705671
  
    --- Diff: core/src/main/scala/org/apache/spark/SparkContext.scala ---
    @@ -1519,7 +1519,12 @@ class SparkContext(config: SparkConf) extends 
Logging {
       def addFile(path: String, recursive: Boolean): Unit = {
         val uri = new Path(path).toUri
         val schemeCorrectedPath = uri.getScheme match {
    -      case null | "local" => new File(path).getCanonicalFile.toURI.toString
    +      case null => new File(path).getCanonicalFile.toURI.toString
    +      case "local" =>
    +        logWarning("We do not support add a local file here because file 
with local scheme is " +
    +          "already existed on every node, there is no need to call addFile 
to add it again. " +
    +          "(See more discussion about this in SPARK-24195.)")
    --- End diff --
    
    Got it, rephrase done.


---

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

Reply via email to