GitHub user aokolnychyi opened a pull request:
https://github.com/apache/spark/pull/16024
[MINOR][DOCS] Updates to the Accumulator example in the programming guide.
Fixed typos, AccumulatorV2 in Java
## What changes were proposed in this pull request?
This pull request contains updates to Scala and Java Accumulator code
snippets in the programming guide.
- For Scala, the pull request fixes the signature of the 'add()' method in
the custom Accumulator, which contained two params (as the old
AccumulatorParam) instead of one (as in AccumulatorV2).
- The Java example was updated to use the AccumulatorV2 class since
AccumulatorParam is marked as deprecated.
- Scala and Java examples are more consistent now.
## How was this patch tested?
This patch was tested manually by building the docs locally.

You can merge this pull request into a Git repository by running:
$ git pull https://github.com/aokolnychyi/spark fixed_accumulator_example
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/16024.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 #16024
----
commit f4388a84181e7c40003db0b1574602350160721a
Author: aokolnychyi <[email protected]>
Date: 2016-11-27T21:30:26Z
[MINOR][DOCS] Updates to the Accumulator example in the programming guide.
Fixed typos, AccumulatorV2 in Java
----
---
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]