java.lang.OutOfMemoryError: Java heap space
The code has an unnecessary .collect(), forcing all interaction data into memory of the client/driver. Increasing the executor memory will not help with this.
remove this line and rebuild Mahout.
The errant line reads:
This forces the user action data into memory, a bad thing for memory consumption. Removing it should allow for better Spark memory management.