[ https://issues.apache.org/jira/browse/SPARK-6300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean Owen resolved SPARK-6300. ------------------------------ Resolution: Fixed Fix Version/s: 1.3.1 1.4.0 Issue resolved by pull request 4993 [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.3.0, 1.2.1 > Reporter: DoingDone9 > Assignee: DoingDone9 > Priority: Critical > Fix For: 1.4.0, 1.3.1 > > > 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