GitHub user liancheng opened a pull request:
https://github.com/apache/spark/pull/8191
[SPARK-9899] [SQL] Fixes HadoopFsRelation speculative writes when used
together with direct output committer
Hadoop output format classes call `FileSystem.create()` to create output
files, and set `overwrite` argument to `false`. This causes trouble for
speculative write tasks when a direct output committer is used, since previous
tasks may leave partial output files there.
This PR tries to fix this issue by removing the output file when generating
output file paths. This is equivalent to creating output files with `overwrite`
flag set to `true`.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/liancheng/spark spark-9899/speculative-write
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/8191.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 #8191
----
commit a3186454ff5898f306e8e3ca8e511381b5cb1bff
Author: Cheng Lian <[email protected]>
Date: 2015-08-14T07:28:07Z
Fixes HadoopFsRelation speculative writes
----
---
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]