GitHub user surq opened a pull request:

    https://github.com/apache/spark/pull/3662

    Print the specified number of data and handle all of the elements in RDD

    Dstream.print function:Print 10 elements and handle 11 elements.
    A new function based on Dstream.print function is presented:
    the new function:
    Print the specified number of data and handle all of the elements in RDD.
    there is a work scene:
    val dstream = stream.map->filter->mapPartitions->print
    the data after filter need update database in mapPartitions,but don't need 
print each data,only need to print the top 20 for view the data processing.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/surq/spark SPARK-4817

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/3662.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 #3662
    
----
commit 4e3f715941f94cb2467ca68b205a5fa3630130a3
Author: surq <[email protected]>
Date:   2014-12-10T10:49:54Z

    Print the specified number of data and handle all of the elements in RDD

----


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