我创建了一个如下的RDD:
scala> val x = List(1,2,3,4)
x: List[Int] = List(1, 2, 3, 4)
scala> val y = sc.parallelize(ls,2)
y: org.apache.spark.rdd.RDD[Int] = ParallelCollectionRDD[10] at parallelize at <console>:29
scala> val z = y.map( c => c*2)
z: org.apache.spark.rdd.RDD[Int] = MapPartitionsRDD[11] at map at <console>:31
scala> sc.setCheckpointDir("/tmp/chk")
scala> z.checkpoint
scala> z.count
res32: Long = 4
我的问题是如何从检查点目录中读取数据