Im implementing PageRank using Spargel. The only addition to a normal PageRank is a pre step that computes the size of the NodeSet using a simple map + reduce step to count. As a result I have the size value in a DataSet.
I need to hand this over to the Spargel part of the computation but I'm not 100% on how to do that. For normal DataSets I would use a broadcast Variable.
On a normal map function it works as descried in the documentation with:
nodeList.map(new VertexInit()).withBroadcastSet(numNodes, "#Nodes");
If I call the Spargel part as follows, I don't have the option to add .withBroadcastSet.
initNodeList.runOperation(VertexCentricIteration.withPlainEdges(...));
QUESTION:
How can I hand over a the BroadcastSet to Spargel, or if it is not possible how can I pass over the size value I computed in a different way?
I have to present this functionality tomorrow (that's why I'm working on a Sunday) so I hope for a fast answer.
cheers Martin
Just out of curiosity: Is it possible to do the Broadcast variable dependent Computation outside the Spargel Code? As initialization logic?Stephan
--
You received this message because you are subscribed to a topic in the Google Groups "stratosphere-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/stratosphere-dev/HyN9GRLA9kI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to stratosphere-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/stratosphere-dev.
For more options, visit https://groups.google.com/d/optout.
--