Github user shivaram commented on the pull request:

    https://github.com/apache/spark/pull/2217#issuecomment-54381921
  
    This discussion probably belongs in the dev/user list, but a simple 
workaround is to create an RDD of your 'mutable' state in the first iteration, 
cache it while computing the partition and call zipPartitions on this RDD with 
the data for the second iteration. Not sure if this completely covers your use 
case, but I've seen this pattern work for a bunch of ML algorithms implemented 
in the AMPLab.


---
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]

Reply via email to