Skip to content

Commit

Permalink
[Spark 1877] ClassNotFoundException when loading RDD with serialized …
Browse files Browse the repository at this point in the history
…objects

Updated version of apache#821

Author: Tathagata Das <[email protected]>
Author: Ghidireac <[email protected]>

Closes apache#835 from tdas/SPARK-1877 and squashes the following commits:

f346f71 [Tathagata Das] Addressed Patrick's comments.
fee0c5d [Ghidireac] SPARK-1877: ClassNotFoundException when loading RDD with serialized objects
  • Loading branch information
tdas committed May 20, 2014
1 parent bcb9dce commit 52eb54d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/org/apache/spark/SparkContext.scala
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ class SparkContext(config: SparkConf) extends Logging {
minPartitions: Int = defaultMinPartitions
): RDD[T] = {
sequenceFile(path, classOf[NullWritable], classOf[BytesWritable], minPartitions)
.flatMap(x => Utils.deserialize[Array[T]](x._2.getBytes))
.flatMap(x => Utils.deserialize[Array[T]](x._2.getBytes, Utils.getContextOrSparkClassLoader))
}

protected[spark] def checkpointFile[T: ClassTag](
Expand Down

0 comments on commit 52eb54d

Please sign in to comment.