You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by sr...@apache.org on 2016/12/27 20:29:52 UTC
spark git commit: [SPARK-19006][DOCS] mention
spark.kryoserializer.buffer.max must be less than 2048m in doc
Repository: spark
Updated Branches:
refs/heads/master d8e14db84 -> 28ab0ec49
[SPARK-19006][DOCS] mention spark.kryoserializer.buffer.max must be less than 2048m in doc
## What changes were proposed in this pull request?
On configuration doc page:https://spark.apache.org/docs/latest/configuration.html
We mentioned spark.kryoserializer.buffer.max : Maximum allowable size of Kryo serialization buffer. This must be larger than any object you attempt to serialize. Increase this if you get a "buffer limit exceeded" exception inside Kryo.
from source code, it has hard coded upper limit :
```
val maxBufferSizeMb = conf.getSizeAsMb("spark.kryoserializer.buffer.max", "64m").toInt
if (maxBufferSizeMb >= ByteUnit.GiB.toMiB(2))
{ throw new IllegalArgumentException("spark.kryoserializer.buffer.max must be less than " + s"2048 mb, got: + $maxBufferSizeMb mb.") }
```
We should mention "this value must be less than 2048 mb" on the configuration doc page as well.
## How was this patch tested?
None. Since it's minor doc change.
Author: Yuexin Zhang <yx...@cloudera.com>
Closes #16412 from cnZach/SPARK-19006.
Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/28ab0ec4
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/28ab0ec4
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/28ab0ec4
Branch: refs/heads/master
Commit: 28ab0ec49fa9bac1c4a246a44a5d1ad163660e1a
Parents: d8e14db
Author: Yuexin Zhang <yx...@cloudera.com>
Authored: Tue Dec 27 20:29:45 2016 +0000
Committer: Sean Owen <so...@cloudera.com>
Committed: Tue Dec 27 20:29:45 2016 +0000
----------------------------------------------------------------------
docs/configuration.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/spark/blob/28ab0ec4/docs/configuration.md
----------------------------------------------------------------------
diff --git a/docs/configuration.md b/docs/configuration.md
index 39bfb3a..bd67144 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -840,8 +840,8 @@ Apart from these, the following properties are also available, and may be useful
<td>64m</td>
<td>
Maximum allowable size of Kryo serialization buffer. This must be larger than any
- object you attempt to serialize. Increase this if you get a "buffer limit exceeded" exception
- inside Kryo.
+ object you attempt to serialize and must be less than 2048m.
+ Increase this if you get a "buffer limit exceeded" exception inside Kryo.
</td>
</tr>
<tr>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org