Github user preaudc commented on the pull request:
https://github.com/apache/spark/pull/2855#issuecomment-62119248
As @ryan-williams pointed out, this is initially only a workaround to
SPARK-3967.
I have still no idea why the move fails (with a {{Permission denied}}) when
the source and target files are not on the same partition (it is no more
atomic, but it should succeed anyway).
I have made this patch because it does not seem necessary to download the
file into another local directory then move it (it may cause a copy instead of
a rename, and does in fact here).
---
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]