From c25c669d95293ce7f72f2758d6737fabd0d4390a Mon Sep 17 00:00:00 2001 From: Eran Medan Date: Fri, 19 Dec 2014 18:29:36 -0800 Subject: change signature of example to match released code the signature of registerKryoClasses is actually of Array[Class[_]] not Seq Author: Eran Medan Closes #3747 from eranation/patch-1 and squashes the following commits: ee9885d [Eran Medan] change signature of example to match released code --- docs/tuning.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/tuning.md b/docs/tuning.md index e2fdcfe6a3..efaac9d3d4 100644 --- a/docs/tuning.md +++ b/docs/tuning.md @@ -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 %} -- cgit v1.2.3