File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
graphx/src/main/scala/org/apache/spark/graphx Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1818package org .apache .spark .graphx
1919
2020import scala .reflect .ClassTag
21+ import org .apache .spark .Logging
2122
2223
2324/**
@@ -52,7 +53,7 @@ import scala.reflect.ClassTag
5253 * }}}
5354 *
5455 */
55- object Pregel {
56+ object Pregel extends Logging {
5657
5758 /**
5859 * Execute a Pregel-like iterative vertex-parallel abstraction. The
@@ -142,6 +143,9 @@ object Pregel {
142143 // hides oldMessages (depended on by newVerts), newVerts (depended on by messages), and the
143144 // vertices of prevG (depended on by newVerts, oldMessages, and the vertices of g).
144145 activeMessages = messages.count()
146+
147+ logInfo(" Pregel finished iteration " + i)
148+
145149 // Unpersist the RDDs hidden by newly-materialized RDDs
146150 oldMessages.unpersist(blocking= false )
147151 newVerts.unpersist(blocking= false )
You can’t perform that action at this time.
0 commit comments