GitHub user vanzin opened a pull request:

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

    [SPARK-11235] [network] Add ability to stream data using network lib.

    The current interface used to fetch shuffle data is not very efficient for
    large buffers; it requires the receiver to buffer the entirety of the
    contents being downloaded in memory before processing the data.
    
    To use the network library to transfer large files (such as those that
    can be added using SparkContext addJar / addFile), this change adds a
    more efficient way of downloding data, by streaming the data and feeding
    it to a callback as data arrives.
    
    This is achieved by a custom frame decoder that replaces the current netty
    one; this decoder allows entering a mode where framing is skipped and data
    is instead provided directly to a callback. The existing netty classes
    (ByteToMessageDecoder and LengthFieldBasedFrameDecoder) could not be reused
    since their semantics do not allow for the interception approach the new
    decoder uses.

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

    $ git pull https://github.com/vanzin/spark SPARK-11235

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

    https://github.com/apache/spark/pull/9206.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 #9206
    
----
commit 73a0bb8d5fcc321f9a439d6637a1c7735e670ec1
Author: Marcelo Vanzin <[email protected]>
Date:   2015-10-19T21:41:47Z

    [SPARK-11235] [network] Add ability to stream data using network lib.
    
    The current interface used to fetch shuffle data is not very efficient for
    large buffers; it requires the receiver to buffer the entirety of the
    contents being downloaded in memory before processing the data.
    
    To use the network library to transfer large files (such as those that
    can be added using SparkContext addJar / addFile), this change adds a
    more efficient way of downloding data, by streaming the data and feeding
    it to a callback as data arrives.
    
    This is achieved by a custom frame decoder that replaces the current netty
    one; this decoder allows entering a mode where framing is skipped and data
    is instead provided directly to a callback. The existing netty classes
    (ByteToMessageDecoder and LengthFieldBasedFrameDecoder) could not be reused
    since their semantics do not allow for the interception approach the new
    decoder uses.

----


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