Skip to content

Commit 1f0a355

Browse files
committed
[SPARK-1977][MLLIB] register mutable BitSet in MovieLenseALS
1 parent 9d5ecf8 commit 1f0a355

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/src/main/scala/org/apache/spark/examples/mllib/MovieLensALS.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
package org.apache.spark.examples.mllib
1919

20+
import scala.collection.mutable
21+
2022
import com.esotericsoftware.kryo.Kryo
2123
import org.apache.log4j.{Level, Logger}
2224
import scopt.OptionParser
@@ -41,6 +43,7 @@ object MovieLensALS {
4143
class ALSRegistrator extends KryoRegistrator {
4244
override def registerClasses(kryo: Kryo) {
4345
kryo.register(classOf[Rating])
46+
kryo.register(classOf[mutable.BitSet])
4447
}
4548
}
4649

0 commit comments

Comments
 (0)