Skip to content

Commit ee9885d

Browse files
committed
change signature of example to match released code
the signature of registerKryoClasses is actually of Array[Class[_]] not Seq
1 parent f930fe8 commit ee9885d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tuning.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ To register your own custom classes with Kryo, use the `registerKryoClasses` met
5151

5252
{% highlight scala %}
5353
val conf = new SparkConf().setMaster(...).setAppName(...)
54-
conf.registerKryoClasses(Seq(classOf[MyClass1], classOf[MyClass2]))
54+
conf.registerKryoClasses(Array(classOf[MyClass1], classOf[MyClass2]))
5555
val sc = new SparkContext(conf)
5656
{% endhighlight %}
5757

0 commit comments

Comments
 (0)