You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Rohan G Patil (JIRA)" <ji...@apache.org> on 2016/06/01 22:57:59 UTC

[jira] [Updated] (SPARK-15720) MLLIB Word2Vec loading large number of vectors in the model results in java.lang.NegativeArraySizeException

     [ https://issues.apache.org/jira/browse/SPARK-15720?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rohan G Patil updated SPARK-15720:
----------------------------------
    Description: 
While loading a large number of pre-trained vectors into Spark MLLIB's Word2Vec model, will result in java.lang.NegativeArraySizeException.

Code - https://github.com/apache/spark/blob/master/mllib/src/main/scala/org/apache/spark/mllib/feature/Word2Vec.scala#L597

Test with number of vectors greater than 16777215 with size of each vector 128 or more.

there is Integer Overflow happening here. Should be an easy fix.

  was:
While loading a large number of pre-trained vectors into Spark MLLIB's Word2Vec model, will result in java.lang.NegativeArraySizeException.

Code - https://github.com/apache/spark/blob/master/mllib/src/main/scala/org/apache/spark/mllib/feature/Word2Vec.scala#L597

there is Integer Overflow happening here. Should be an easy fix.


> MLLIB Word2Vec loading large number of vectors in the model results in java.lang.NegativeArraySizeException
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-15720
>                 URL: https://issues.apache.org/jira/browse/SPARK-15720
>             Project: Spark
>          Issue Type: Bug
>          Components: MLlib
>    Affects Versions: 1.6.1
>         Environment: Linux
>            Reporter: Rohan G Patil
>
> While loading a large number of pre-trained vectors into Spark MLLIB's Word2Vec model, will result in java.lang.NegativeArraySizeException.
> Code - https://github.com/apache/spark/blob/master/mllib/src/main/scala/org/apache/spark/mllib/feature/Word2Vec.scala#L597
> Test with number of vectors greater than 16777215 with size of each vector 128 or more.
> there is Integer Overflow happening here. Should be an easy fix.



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