You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2020/08/26 07:49:00 UTC

[jira] [Commented] (SPARK-32705) EmptyHashedRelation$; no valid constructor

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

Apache Spark commented on SPARK-32705:
--------------------------------------

User 'leanken' has created a pull request for this issue:
https://github.com/apache/spark/pull/29547

> EmptyHashedRelation$; no valid constructor
> ------------------------------------------
>
>                 Key: SPARK-32705
>                 URL: https://issues.apache.org/jira/browse/SPARK-32705
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Leanken.Lin
>            Priority: Major
>
> Current EmptyHashedRelation is object and it will cause JavaDeserialization Exception as follow
>  
> {code:java}
> // Stack
> 20/08/26 11:13:30 WARN [task-result-getter-2] TaskSetManager: Lost task 34.0 in stage 57.0 (TID 18076, emr-worker-5.cluster-183257, executor 18): java
> .io.InvalidClassException: org.apache.spark.sql.execution.joins.EmptyHashedRelation$; no valid constructor
>         at java.io.ObjectStreamClass$ExceptionInfo.newInvalidClassException(ObjectStreamClass.java:169)
>         at java.io.ObjectStreamClass.checkDeserialize(ObjectStreamClass.java:874)
>         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2042)
>         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1572)
>         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:430)
>         at org.apache.spark.serializer.JavaDeserializationStream.readObject(JavaSerializer.scala:76)
>         at org.apache.spark.broadcast.TorrentBroadcast$.$anonfun$unBlockifyObject$4(TorrentBroadcast.scala:328)
>         at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:1377)
>         at org.apache.spark.broadcast.TorrentBroadcast$.unBlockifyObject(TorrentBroadcast.scala:330)
>         at org.apache.spark.broadcast.TorrentBroadcast.$anonfun$readBroadcastBlock$4(TorrentBroadcast.scala:249)
>         at scala.Option.getOrElse(Option.scala:189)
>         at org.apache.spark.broadcast.TorrentBroadcast.$anonfun$readBroadcastBlock$2(TorrentBroadcast.scala:223)
>         at org.apache.spark.util.KeyLock.withLock(KeyLock.scala:64)
>         at org.apache.spark.broadcast.TorrentBroadcast.$anonfun$readBroadcastBlock$1(TorrentBroadcast.scala:218)
>         at org.apache.spark.util.Utils$.tryOrIOException(Utils.scala:1343)
> {code}
> using case object instead to fix serialization issue. And also change EmptyHashedRelation not to extend NullAwareHashedRelation since it's already being used in other non-NAAJ joins.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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