OK, I found it.
Sample code for archive purposes (here it's 3 supersteps, if config
doesnt have the key):
In the compute method:
SUPERSTEP_COUNT = "giraph.pageRank.superstepCount";
if (superStep < getConf().getInt(SUPERSTEP_COUNT, 3)) {
sendMessageToAllEdges(
new FloatWritable(getValue().get() / getNumEdges())
);
} else {
voteToHalt();
}
On 05/20/2013 02:10 PM, Ahmet Emre Aladağ wrote:
Hi,
In the benchmark examples we could specify the number of supersteps
via -s 10 parameter. But when we're using GraphRunner, how can we
specify that?
hadoop jar
giraph-examples/target/giraph-examples-1.1.0-SNAPSHOT-for-hadoop-1.0.2-jar-with-dependencies.jar
org.apache.giraph.GiraphRunner
org.apache.giraph.examples.LinkRank.LinkRankVertex
-vif org.apache.giraph.examples.LinkRank.LinkRankVertexInputFormat
-eif org.apache.giraph.examples.LinkRank.LinkRankEdgeInputFormat
-of org.apache.giraph.examples.LinkRank.LinkRankVertexOutputFormat
-vip nodes.txt
-eip edges.txt
-op linkOutput7
-w 1
Currently my code runs for superstep 0, that's all.
Thanks,