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

FileNotFoundException when a directory is passed to SparkContext.addJar/addFile

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.1, 1.1.0
    • Component/s: Spark Core
    • Labels:
      None

      Description

      When SparkContext.addJar/addFile is used to add a directory (which is not supported), the runtime exception is

      java.io.FileNotFoundException: [file] (No such file or directory)
      

      This exception is extremely confusing because the directory does exist. We should throw a more meaningful exception when a directory is passed to addJar/addFile.

        Attachments

          Activity

            People

            • Assignee:
              rxin Reynold Xin
              Reporter:
              rxin Reynold Xin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: