You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Guillaume Desforges (Jira)" <ji...@apache.org> on 2021/12/28 16:53:00 UTC

[jira] [Commented] (SPARK-2421) Spark should treat writable as serializable for keys

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

Guillaume Desforges commented on SPARK-2421:
--------------------------------------------

It seems that the issue was indeed resolved with the introduction of SerializableWritable

https://spark.apache.org/docs/3.2.0/api/java/org/apache/spark/SerializableWritable.html

> Spark should treat writable as serializable for keys
> ----------------------------------------------------
>
>                 Key: SPARK-2421
>                 URL: https://issues.apache.org/jira/browse/SPARK-2421
>             Project: Spark
>          Issue Type: Improvement
>          Components: Input/Output, Java API
>    Affects Versions: 1.0.0
>            Reporter: Xuefu Zhang
>            Priority: Major
>
> It seems that Spark requires the key be serializable (class implement Serializable interface). In Hadoop world, Writable interface is used for the same purpose. A lot of existing classes, while writable, are not considered by Spark as Serializable. It would be nice if Spark can treate Writable as serializable and automatically serialize and de-serialize these classes using writable interface.
> This is identified in HIVE-7279, but its benefits are seen global.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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