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

YARN: archives/jar/files rename with # doesn't work unless scheme given

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5.1
    • 1.5.2, 1.6.0
    • YARN
    • None

    Description

      The YARN distributed cache feature with --jars, --archives, --files where you can rename the file/archive using a # symbol only works if you explicitly include the scheme in the path:

      works:
      --jars file:///home/foo/my.jar#renamed.jar

      doesn't work:
      --jars /home/foo/my.jar#renamed.jar

      Exception in thread "main" java.io.FileNotFoundException: File file:/home/foo/my.jar#renamed.jar does not exist
      at org.apache.hadoop.fs.RawLocalFileSystem.deprecatedGetFileStatus(RawLocalFileSystem.java:534)
      at org.apache.hadoop.fs.RawLocalFileSystem.getFileLinkStatusInternal(RawLocalFileSystem.java:747)
      at org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:524)
      at org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:416)
      at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:337)
      at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:289)
      at org.apache.spark.deploy.yarn.Client.copyFileToRemote(Client.scala:240)
      at org.apache.spark.deploy.yarn.Client.org$apache$spark$deploy$yarn$Client$$distribute$1(Client.scala:329)
      at org.apache.spark.deploy.yarn.Client$$anonfun$prepareLocalResources$6$$anonfun$apply$2.apply(Client.scala:393)
      at org.apache.spark.deploy.yarn.Client$$anonfun$prepareLocalResources$6$$anonfun$apply$2.apply(Client.scala:392)
      at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
      at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:108)

      Attachments

        Activity

          People

            tgraves Thomas Graves
            tgraves Thomas Graves
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: