mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pat Ferrel <>
Subject Re: spark-rowsimilarity java.lang.OutOfMemoryError: Java heap space
Date Wed, 13 May 2015 17:27:47 GMT
There is a bug in mahout 0.10.0 that you can fix if you are able to build from source. Get
the source tar for 0.10.0, not the current master.

Got to

remove the line that says: interactions.collect()

See this Jira

There is one other thing that can cause this and is fixed by increasing you client JVM heap
space but try the above first.

BTW setting the executor memory twice, is not necessary.

On May 13, 2015, at 2:21 AM, Xavier Rampino <> wrote:


I've tried spark-rowsimilarity with out-of-the-box setup (downloaded mahout
distribution and spark, and set up the PATH), and I stumble upon a Java
Heap space error. My input file is ~100MB. It seems the various parameters
I tried to give won't change this. I do :

~/mahout-distribution-0.10.0/bin/mahout spark-rowsimilarity --input
~/query_result.tsv --output ~/work/result -sem 24g

Do I just need to input more memory, or is there another step I can do to
solve this ?

View raw message