You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Antonio Murgia (JIRA)" <ji...@apache.org> on 2015/11/25 19:03:10 UTC
[jira] [Created] (SPARK-11994) Word2VecModel load and save cause
SparkException when model is bigger than spark.kryoserializer.buffer.max
Antonio Murgia created SPARK-11994:
--------------------------------------
Summary: Word2VecModel load and save cause SparkException when model is bigger than spark.kryoserializer.buffer.max
Key: SPARK-11994
URL: https://issues.apache.org/jira/browse/SPARK-11994
Project: Spark
Issue Type: Bug
Components: MLlib
Affects Versions: 1.5.1, 1.4.1
Reporter: Antonio Murgia
When loading a Word2VecModel of compressed size 58Mb using the Word2VecModel.load() method introduced in Spark 1.4.0 I get a `org.apache.spark.SparkException: Kryo serialization failed: Buffer overflow. Available: 0, required: 2` exception.
This happens because the model is saved as a unique file with no partitioning and the kryo buffer overflows when tries to serialize it all.
Increasing `spark.kryoserializer.buffer.max` works as a temporary solution but needs to increased again whenever we increase the model size.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org