Example #1
0
 public static void main(String[] args) throws Exception {
   PregelixJob job = new PregelixJob(PageRankVertex.class.getSimpleName());
   job.setVertexClass(PageRankVertex.class);
   job.setVertexInputFormatClass(TextPageRankInputFormat.class);
   job.setVertexOutputFormatClass(SimplePageRankVertexOutputFormat.class);
   job.setMessageCombinerClass(PageRankVertex.SimpleSumCombiner.class);
   job.setNoramlizedKeyComputerClass(VLongNormalizedKeyComputer.class);
   job.setFixedVertexValueSize(true);
   job.setSkipCombinerKey(true);
   Client.run(args, job);
 }