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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.1, 1.1.0
    • Spark Core
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: