You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Christopher Ng (JIRA)" <ji...@apache.org> on 2014/11/19 13:13:34 UTC
[jira] [Created] (SPARK-4489) JavaPairRDD.collectAsMap from
checkpoint RDD may fail with ClassCastException
Christopher Ng created SPARK-4489:
-------------------------------------
Summary: JavaPairRDD.collectAsMap from checkpoint RDD may fail with ClassCastException
Key: SPARK-4489
URL: https://issues.apache.org/jira/browse/SPARK-4489
Project: Spark
Issue Type: Bug
Components: Java API
Affects Versions: 1.1.0
Reporter: Christopher Ng
Calling collectAsMap() on a JavaPairRDD reconstructed from a checkpoint fails with a ClassCastException:
Exception in thread "main" java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lscala.Tuple2;
at org.apache.spark.rdd.PairRDDFunctions.collectAsMap(PairRDDFunctions.scala:595)
at org.apache.spark.api.java.JavaPairRDD.collectAsMap(JavaPairRDD.scala:569)
at org.facboy.spark.CheckpointBug.main(CheckpointBug.java:46)
Code sample reproducing the issue: https://gist.github.com/facboy/8387e950ffb0746a8272
--
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