Slide 29
Slide 29 text
GiraphJob job = new GiraphJob(getConf(), getClass().getName());
job.setVertexClass(SimpleShortestPathVertex.class);
job.setVertexInputFormatClass(SimpleShortestPathsVertexInputFormat.class);
job.setVertexOutputFormatClass(
SimpleShortestPathsVertexOutputFormat.class);
FileInputFormat.addInputPath(job, new Path(„/foo/bar/baz“));
FileOutputFormat.setOutputPath(job, new Path(„/foo/bar/quux“));
job.getConfiguration().setLong(SimpleShortestPathsVertex.SOURCE_ID,
Long.parseLong(argArray[2]));
job.setWorkerConfiguration(minWorkers, maxWorkers), 100.0f);
GiraphJob