[ 
https://issues.apache.org/jira/browse/SPARK-1933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14009239#comment-14009239
 ] 

Reynold Xin commented on SPARK-1933:
------------------------------------

Pull request added https://github.com/apache/spark/pull/888

> 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)

Reply via email to