spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bogdan Ghidireac <>
Subject graph.reverse & Pregel API
Date Wed, 16 Apr 2014 14:51:16 GMT

I am using Pregel API with Spark (1.0 branch compiled on Apr 16th) and I
run into some problems when my graph has the edges reversed.
If the edges of my graph are reversed, the sendMsg function does no longer
receives the attribute for the source vertex (it is null). This does not
happen with the original graph.

I find this behavior inconsistent and the sendMsg becomes unusable if
the EdgeTriplet has only the vertexIDs and no other information.

I attached the code to reproduce the behavior.

If you run the program, it will throw a NPE at line 44 because edge.srcAttr
is null

If you remove ".reverse" from line 25 and run it again, edge.srcAttr will
have a value and the program will complete.

Am I using graph.reverse incorrectly?

Thank you for your help.

View raw message