GitHub user tdas opened a pull request:
https://github.com/apache/spark/pull/10088
[SPARK-12087][Streaming] Create new JobConf for every batch in
saveAsHadoopFiles
The JobConf object created in DStream.saveAsHadoopFiles is used
concurrently in multiple places:
* The JobConf is updated by RDD.saveAsHadoopFile() before the job is
launched
* The JobConf is serialized as part of the DStream checkpoints.
These concurrent accesses (updating in one thread, while the another thread
is serializing it) can lead to concurrentModidicationException in the
underlying Java hashmap using in the internal Hadoop Configuration object.
The solution is to create a new JobConf in every batch, that is updated by
RDD.saveAsHadoopFile(), while the checkpointing serializes the original JobConf
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/tdas/spark SPARK-12087
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/10088.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 #10088
----
commit 7ff81749bf9df65db539e35550ffe140eb874053
Author: Tathagata Das <[email protected]>
Date: 2015-12-02T02:59:52Z
Create new JobConf for every batch
----
---
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]