spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "yangping wu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-5082) Minor typo in the Tuning Spark document about Data Serialization
Date Tue, 06 Jan 2015 01:57:35 GMT

    [ https://issues.apache.org/jira/browse/SPARK-5082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14265550#comment-14265550
] 

yangping wu commented on SPARK-5082:
------------------------------------

Yes, I also found the pull after I created the issue.

> Minor typo in the Tuning Spark document about Data Serialization
> ----------------------------------------------------------------
>
>                 Key: SPARK-5082
>                 URL: https://issues.apache.org/jira/browse/SPARK-5082
>             Project: Spark
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 1.2.0
>            Reporter: yangping wu
>            Priority: Trivial
>   Original Estimate: 8h
>  Remaining Estimate: 8h
>
> The latest documentation for *Tuning Spark* has some error entry(http://spark.apache.org/docs/latest/tuning.html)
in the *Data Serialization*: section:
> {code}
> val conf = new SparkConf().setMaster(...).setAppName(...)
> conf.registerKryoClasses(Seq(classOf[MyClass1], classOf[MyClass2]))
> val sc = new SparkContext(conf)
> {code}
> the *registerKryoClasses* method's parameter type should be *Array[Class[_]]* not *Seq[Class[_]]*.
The right code snippets is
> {code}
> val conf = new SparkConf().setMaster(...).setAppName(...)
> conf.registerKryoClasses(Array(classOf[MyClass1], classOf[MyClass2]))
> val sc = new SparkContext(conf)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message