You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Reynold Xin (JIRA)" <ji...@apache.org> on 2014/05/27 05:19:01 UTC

[jira] [Created] (SPARK-1933) FileNotFoundException when a directory is passed to SparkContext.addJar/addFile

Reynold Xin created SPARK-1933:
----------------------------------

             Summary: FileNotFoundException when a directory is passed to SparkContext.addJar/addFile
                 Key: SPARK-1933
                 URL: https://issues.apache.org/jira/browse/SPARK-1933
             Project: Spark
          Issue Type: Bug
          Components: Spark Core
            Reporter: Reynold Xin
            Assignee: Reynold Xin
             Fix For: 1.0.1


When SparkContext.addJar/addFile is used to add a directory (which is not supported), the runtime exception is 
{code}
java.io.FileNotFoundException: [file] (No such file or directory)
{code}

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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)