giraph-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Emre Alada─č <emre.ala...@agmlab.com>
Subject Re: Running Giraph job inside Java code
Date Tue, 02 Jul 2013 11:08:55 GMT
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