Take a look at PageRankBenchmark, it is a stand alone java program that
runs Giraph jobs.
On 7/2/13 4:08 AM, Ahmet Emre Aladağ wrote:
By the way, I have set the corresponding classes in the giraph
configuration.
GiraphConfiguration giraphConf = new GiraphConfiguration(config);
giraphConf.setZooKeeperConfiguration(
zooKeeperWatcher.getQuorum());
giraphConf.setComputationClass(LinkRankComputation.class);
giraphConf.setMasterComputeClass(LinkRankVertexMasterCompute.class);
giraphConf.setOutEdgesClass(ByteArrayEdges.class);
giraphConf.setVertexInputFormatClass(NutchTableEdgeInputFormat.class);
giraphConf.setVertexOutputFormatClass(NutchTableEdgeOutputFormat.class);
giraphConf.setInt("giraph.pageRank.superstepCount", 40);
giraphConf.setWorkerConfiguration(1, 1, 100.0f);
giraphConf.set(TableInputFormat.INPUT_TABLE, TABLE_NAME);
giraphConf.set(TableOutputFormat.OUTPUT_TABLE, TABLE_NAME);