Skip to content
Snippets Groups Projects
Commit c25c669d authored by Eran Medan's avatar Eran Medan Committed by Andrew Or
Browse files

change signature of example to match released code

the signature of registerKryoClasses is actually of Array[Class[_]]  not Seq

Author: Eran Medan <ehrann.mehdan@gmail.com>

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

ee9885d [Eran Medan] change signature of example to match released code
parent 45645191
No related branches found
No related tags found
No related merge requests found
......@@ -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 %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment