[ 
https://issues.apache.org/jira/browse/SPARK-1813?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Patrick Wendell resolved SPARK-1813.
------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.2.0
         Assignee: Sandy Ryza

Fixed in https://github.com/apache/spark/pull/789

> Add a utility to SparkConf that makes using Kryo really easy
> ------------------------------------------------------------
>
>                 Key: SPARK-1813
>                 URL: https://issues.apache.org/jira/browse/SPARK-1813
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 1.0.0
>            Reporter: Sandy Ryza
>            Assignee: Sandy Ryza
>             Fix For: 1.2.0
>
>
> It would be nice to have a method in SparkConf that makes it really easy to 
> turn on Kryo serialization and register a set of classes.
> Using Kryo currently requires all this:
> {code}
> import com.esotericsoftware.kryo.Kryo
> import org.apache.spark.serializer.KryoRegistrator
> class MyRegistrator extends KryoRegistrator {
>   override def registerClasses(kryo: Kryo) {
>     kryo.register(classOf[MyClass1])
>     kryo.register(classOf[MyClass2])
>   }
> }
> val conf = new SparkConf().setMaster(...).setAppName(...)
> conf.set("spark.serializer", "org.apache.spark.serializer.KryoSerializer")
> conf.set("spark.kryo.registrator", "mypackage.MyRegistrator")
> val sc = new SparkContext(conf)
> {code}
> It would be nice if it just required this:
> {code}
> SparkConf.setKryo(Array(classOf[MyClass1], classOf[MyClass2]))
> {code}



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

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

Reply via email to