aboutsummaryrefslogtreecommitdiff
path: root/sql/hive
diff options
context:
space:
mode:
authorWenchen Fan(Cloud) <cloud0fan@gmail.com>2014-06-03 13:18:20 -0700
committerPatrick Wendell <pwendell@gmail.com>2014-06-25 13:28:53 -0700
commitabb62f0b98f0be77cb509cd0513faa8e9393bfff (patch)
tree404ea329063a5565c9e1cd27daf9ef24046a7940 /sql/hive
parentb4b0a54cf285614b7926c3c32b8ec652cf6ccef3 (diff)
downloadspark-abb62f0b98f0be77cb509cd0513faa8e9393bfff.tar.gz
spark-abb62f0b98f0be77cb509cd0513faa8e9393bfff.tar.bz2
spark-abb62f0b98f0be77cb509cd0513faa8e9393bfff.zip
[SPARK-1912] fix compress memory issue during reduce
When we need to read a compressed block, we will first create a compress stream instance(LZF or Snappy) and use it to wrap that block. Let's say a reducer task need to read 1000 local shuffle blocks, it will first prepare to read that 1000 blocks, which means create 1000 compression stream instance to wrap them. But the initialization of compression instance will allocate some memory and when we have many compression instance at the same time, it is a problem. Actually reducer reads the shuffle blocks one by one, so we can do the compression instance initialization lazily. Author: Wenchen Fan(Cloud) <cloud0fan@gmail.com> Closes #860 from cloud-fan/fix-compress and squashes the following commits: 0924a6b [Wenchen Fan(Cloud)] rename 'doWork' into 'getIterator' 07f32c2 [Wenchen Fan(Cloud)] move the LazyProxyIterator to dataDeserialize d80c426 [Wenchen Fan(Cloud)] remove empty lines in short class 2c8adb2 [Wenchen Fan(Cloud)] add inline comment 8ebff77 [Wenchen Fan(Cloud)] fix compress memory issue during reduce
Diffstat (limited to 'sql/hive')
0 files changed, 0 insertions, 0 deletions