Skip to content

Commit

Permalink
change signature of example to match released code
Browse files Browse the repository at this point in the history
the signature of registerKryoClasses is actually of Array[Class[_]]  not Seq

Author: Eran Medan <[email protected]>

Closes #3747 from eranation/patch-1 and squashes the following commits:

ee9885d [Eran Medan] change signature of example to match released code
  • Loading branch information
eranation authored and Andrew Or committed Dec 20, 2014
1 parent f930fe8 commit 4da1039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tuning.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ To register your own custom classes with Kryo, use the `registerKryoClasses` met

{% highlight scala %}
val conf = new SparkConf().setMaster(...).setAppName(...)
conf.registerKryoClasses(Seq(classOf[MyClass1], classOf[MyClass2]))
conf.registerKryoClasses(Array(classOf[MyClass1], classOf[MyClass2]))
val sc = new SparkContext(conf)
{% endhighlight %}

Expand Down

0 comments on commit 4da1039

Please sign in to comment.