Github user MLnick commented on the pull request:
https://github.com/apache/spark/pull/11776#issuecomment-198207419
I think you can actually just make that variable a static int outside the
main definition, and -= it in the foreachRDD block. Similar to Scala.
I tested it and it works - no need even for an atomicinteger.
On Fri, 18 Mar 2016 at 03:33, Ruifeng Zheng <[email protected]>
wrote:
> @MLnick <https://github.com/MLnick> @srowen <https://github.com/srowen>
> What should I do to refine the PR?
>
> â
> You are receiving this because you were mentioned.
> Reply to this email directly or view it on GitHub
> <https://github.com/apache/spark/pull/11776#issuecomment-198153829>
>
---
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]