Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-24195

sc.addFile for local:/ path is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3.1, 1.4.1, 1.5.2, 1.6.3, 2.0.2, 2.1.2, 2.2.1, 2.3.0
    • 2.4.0
    • Spark Core

    Description

      In changing SPARK-6300
      https://github.com/apache/spark/commit/00e730b94cba1202a73af1e2476ff5a44af4b6b2

      essentially the change to
      new File(path).getCanonicalFile.toURI.toString

      breaks when path is local:, as java.io.File doesn't handle it.

      eg.

      new File("local:///home/user/demo/logger.config").getCanonicalFile.toURI.toString
      res1: String = file:/user/anotheruser/local:/home/user/demo/logger.config

      Attachments

        Activity

          People

            XuanYuan Yuanjian Li
            felixcheung Felix Cheung
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: