diff options
author | Marcelo Vanzin <vanzin@cloudera.com> | 2015-11-04 09:11:54 -0800 |
---|---|---|
committer | Marcelo Vanzin <vanzin@cloudera.com> | 2015-11-04 09:11:54 -0800 |
commit | 27feafccbd6945b000ca51b14c57912acbad9031 (patch) | |
tree | d32ac36287d2f82afffa44c792c5487d07ef182d /docs | |
parent | 8790ee6d69e50ca84eb849742be48f2476743b5b (diff) | |
download | spark-27feafccbd6945b000ca51b14c57912acbad9031.tar.gz spark-27feafccbd6945b000ca51b14c57912acbad9031.tar.bz2 spark-27feafccbd6945b000ca51b14c57912acbad9031.zip |
[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.
Author: Marcelo Vanzin <vanzin@cloudera.com>
Closes #9206 from vanzin/SPARK-11235.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions