diff options
author | DoingDone9 <799203320@qq.com> | 2015-03-16 12:27:15 +0000 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2015-03-16 12:27:15 +0000 |
commit | 00e730b94cba1202a73af1e2476ff5a44af4b6b2 (patch) | |
tree | 155ba9f24035c7639581a49d30aee992e1707030 /python | |
parent | 45f4c66122c57011e74c694a424756812ab77d99 (diff) | |
download | spark-00e730b94cba1202a73af1e2476ff5a44af4b6b2.tar.gz spark-00e730b94cba1202a73af1e2476ff5a44af4b6b2.tar.bz2 spark-00e730b94cba1202a73af1e2476ff5a44af4b6b2.zip |
[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)
Author: DoingDone9 <799203320@qq.com>
Closes #4993 from DoingDone9/relativePath and squashes the following commits:
ee375cd [DoingDone9] Update SparkContextSuite.scala
d594e16 [DoingDone9] Update SparkContext.scala
0ff3fa8 [DoingDone9] test for add file
dced8eb [DoingDone9] Update SparkContext.scala
e4a13fe [DoingDone9] getCanonicalPath
161cae3 [DoingDone9] Merge pull request #4 from apache/master
c87e8b6 [DoingDone9] Merge pull request #3 from apache/master
cb1852d [DoingDone9] Merge pull request #2 from apache/master
c3f046f [DoingDone9] Merge pull request #1 from apache/master
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions