Skip to content

Commit ec62659

Browse files
author
ding
committed
recommend a good value in checkpoint interval in pregel
1 parent 24d4ad6 commit ec62659

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/graphx-programming-guide.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,8 @@ messages remaining.
709709
710710
The following is the type signature of the [Pregel operator][GraphOps.pregel] as well as a *sketch*
711711
of its implementation (note: to avoid stackOverflowError due to long lineage chains, pregel support periodcally
712-
checkpoint graph and messages by setting "spark.graphx.pregel.checkpointInterval"):
712+
checkpoint graph and messages by setting "spark.graphx.pregel.checkpointInterval" to a positive number,
713+
say 10. And set checkpoint directory as well using SparkContext.setCheckpointDir(directory: String)):
713714

714715
{% highlight scala %}
715716
class GraphOps[VD, ED] {

0 commit comments

Comments
 (0)