diff options
author | Eran Medan <ehrann.mehdan@gmail.com> | 2014-12-19 18:29:36 -0800 |
---|---|---|
committer | Andrew Or <andrew@databricks.com> | 2014-12-19 18:30:09 -0800 |
commit | c25c669d95293ce7f72f2758d6737fabd0d4390a (patch) | |
tree | a0b6b8ccb49088bd473b1625efaec65655ca41d5 /docs/tuning.md | |
parent | 456451911d11cc0b6738f31b1e17869b1fb51c87 (diff) | |
download | spark-c25c669d95293ce7f72f2758d6737fabd0d4390a.tar.gz spark-c25c669d95293ce7f72f2758d6737fabd0d4390a.tar.bz2 spark-c25c669d95293ce7f72f2758d6737fabd0d4390a.zip |
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
Diffstat (limited to 'docs/tuning.md')
-rw-r--r-- | docs/tuning.md | 2 |
1 files changed, 1 insertions, 1 deletions
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 %} |