Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-4489

JavaPairRDD.collectAsMap from checkpoint RDD may fail with ClassCastException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • 1.1.0
    • None
    • Java API

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              facboy Christopher Ng
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: