spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hao Ren <>
Subject Why is ALS class serializable ?
Date Wed, 19 Nov 2014 10:39:55 GMT

When reading through ALS code, I find that:

class ALS private (
    private var numUserBlocks: Int,
    private var numProductBlocks: Int,
    private var rank: Int,
    private var iterations: Int,
    private var lambda: Double,
    private var implicitPrefs: Boolean,
    private var alpha: Double,
    private var seed: Long = System.nanoTime()
  ) extends *Serializable *with Logging 

and why should ALS extend Serializable ?

if not, there will be an Exception: task is not serializable, ALS is not
I did not find any closure functions in which ALS is referenced.

Any idea ? Thx.


View this message in context:
Sent from the Apache Spark User List mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message