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

Sean Owen commented on SPARK-6300:
----------------------------------

(Sandy notes it's a regression so yeah it's more important. I didn't think this 
was ever supposed to work)

> sc.addFile(path) does not support the relative path.
> ----------------------------------------------------
>
>                 Key: SPARK-6300
>                 URL: https://issues.apache.org/jira/browse/SPARK-6300
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 1.3.0, 1.2.1
>            Reporter: DoingDone9
>            Assignee: DoingDone9
>            Priority: Critical
>
> when i run cmd like that sc.addFile("../test.txt"), it did not work and throw 
> an exception
> java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative 
> path in absolute URI: file:../test.txt
> at org.apache.hadoop.fs.Path.initialize(Path.java:206)
> at org.apache.hadoop.fs.Path.<init>(Path.java:172) 
> ........
> .......
> Caused by: java.net.URISyntaxException: Relative path in absolute URI: 
> file:../test.txt
> at java.net.URI.checkPath(URI.java:1804)
> at java.net.URI.<init>(URI.java:752)
> at org.apache.hadoop.fs.Path.initialize(Path.java:203)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to