GitHub user DoingDone9 opened a pull request:
https://github.com/apache/spark/pull/4993
[SPARK-6300][Spark Core] sc.addFile(path) does not support the relative
path.
when i run cmd like that sc.addFile("../test.txt"), it did not work and
throwed 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)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/DoingDone9/spark relativePath
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/4993.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #4993
----
commit c3f046f8de7c418d4aa7e74afea9968a8baf9231
Author: DoingDone9 <[email protected]>
Date: 2015-03-02T02:11:18Z
Merge pull request #1 from apache/master
merge lastest spark
commit cb1852d14f62adbd194b1edda4ec639ba942a8ba
Author: DoingDone9 <[email protected]>
Date: 2015-03-05T07:05:10Z
Merge pull request #2 from apache/master
merge lastest spark
commit c87e8b6d8cb433376a7d14778915006c31f6c01c
Author: DoingDone9 <[email protected]>
Date: 2015-03-10T07:46:12Z
Merge pull request #3 from apache/master
merge lastest spark
commit 161cae3a29951d793ce721f9904888bd9529de72
Author: DoingDone9 <[email protected]>
Date: 2015-03-12T06:46:28Z
Merge pull request #4 from apache/master
merge lastest spark
commit e4a13fe302c73140731fc04b03728f4bc2f6be98
Author: DoingDone9 <[email protected]>
Date: 2015-03-12T06:48:24Z
getCanonicalPath
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]