Github user jkbradley commented on the pull request:
https://github.com/apache/spark/pull/4253#issuecomment-71933865
I'm not sure if this patch actually works. The following code works with
RDD, but the similar code (below) does not work with Graph:
```
// For RDD:
val rdd = sc.parallelize(Seq(1,2,3))
sc.setCheckpointDir("tmpcheckpoints")
rdd.checkpoint()
rdd.count
rdd.isCheckpointed // returns true
```
```
// For Graph
import org.apache.spark.graphx.Graph
import org.apache.spark.graphx.Edge
sc.setCheckpointDir("tmpcheckpoints")
val edges = sc.parallelize(Seq(Edge[Int](0,1), Edge[Int](1,2),
Edge[Int](2,3)))
val g = Graph.fromEdges(edges, 0)
g.checkpoint()
g.vertices.count
g.edges.count
g.isCheckpointed // returns false
g.vertices.isCheckpointed // returns false
g.edges.isCheckpointed // returns false
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]