diff options
author | Tom Graves <tgraves@yahoo-inc.com> | 2015-10-09 14:06:25 -0700 |
---|---|---|
committer | Marcelo Vanzin <vanzin@cloudera.com> | 2015-10-09 14:06:25 -0700 |
commit | 63c340a710b24869410d56602b712fbfe443e6f0 (patch) | |
tree | c5ba32f8f446dfdaab4ba325f2da688b90ec4e64 /python | |
parent | 12b7191d2075ae870c73529de450cbb5725872ec (diff) | |
download | spark-63c340a710b24869410d56602b712fbfe443e6f0.tar.gz spark-63c340a710b24869410d56602b712fbfe443e6f0.tar.bz2 spark-63c340a710b24869410d56602b712fbfe443e6f0.zip |
[SPARK-10858] YARN: archives/jar/files rename with # doesn't work unl
https://issues.apache.org/jira/browse/SPARK-10858
The issue here is that in resolveURI we default to calling new File(path).getAbsoluteFile().toURI(). But if the path passed in already has a # in it then File(path) will think that is supposed to be part of the actual file path and not a fragment so it changes # to %23. Then when we try to parse that later in Client as a URI it doesn't recognize there is a fragment.
so to fix we just check if there is a fragment, still create the File like we did before and then add the fragment back on.
Author: Tom Graves <tgraves@yahoo-inc.com>
Closes #9035 from tgravescs/SPARK-10858.
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions