giraph-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Avery Ching <ach...@apache.org>
Subject Re: Running Giraph job inside Java code
Date Thu, 04 Jul 2013 04:13:09 GMT
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);


Mime
View raw message