GitHub user harishreedharan opened a pull request:
https://github.com/apache/spark/pull/4322
[SPARK-5545][STREAMING] DStream#saveAs**Files can fail after app restart...
...s.
This happens when an RDD is partially written when the driver fails. At
this point,
the directory that the RDD is being written to gets reused when the app
restarts.
This can cause the write to fail, since the underlying MR API does not
allow writing
to a directory that already exists.
This PR introduces a new method in RDD.scala that allows overwriting any
existing data
in a directory. This method is prive[spark] and is used by Spark Streaming
to overwrite
any data present in the directory.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/harishreedharan/spark AM-recovery-failure
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/4322.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 #4322
----
commit dd73fe07fbf4e35e7604cc13687f2ba534abce35
Author: Hari Shreedharan <[email protected]>
Date: 2015-02-03T02:20:47Z
[SPARK-5545][STREAMING] DStream#saveAs**Files can fail after app restarts.
This happens when an RDD is partially written when the driver fails. At
this point,
the directory that the RDD is being written to gets reused when the app
restarts.
This can cause the write to fail, since the underlying MR API does not
allow writing
to a directory that already exists.
This PR introduces a new method in RDD.scala that allows overwriting any
existing data
in a directory. This method is prive[spark] and is used by Spark Streaming
to overwrite
any data present in the directory.
----
---
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]