Github user mateiz commented on the pull request:
https://github.com/apache/spark/pull/1338#issuecomment-50112244
BTW you can try WritableUtils.clone. At some point we tried cloning data by
default in hadoopRDD, or having a flag for it, and we gave up because it didn't
seem to work for every InputFormat. But it's probably worth a shot here if the
object extends Writable.
---
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.
---