[
https://issues.apache.org/jira/browse/SPARK-6300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14358199#comment-14358199
]
Apache Spark commented on SPARK-6300:
-------------------------------------
User 'DoingDone9' has created a pull request for this issue:
https://github.com/apache/spark/pull/4993
> 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.2.1
> Reporter: DoingDone9
>
> 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: [email protected]
For additional commands, e-mail: [email protected]