/** * Populate internal Hadoop Job (and Giraph IO Formats) with Hadoop-specific * configuration/setup metadata, propagating exceptions to calling code. * @param job the GiraphJob object to help populate Giraph IO Format data. * @param cmd the CommandLine for parsing Hadoop MR-specific args. */ private void prepareHadoopMRJob(final GiraphJob job, final CommandLine cmd) throws Exception { if (cmd.hasOption("vof") || cmd.hasOption("eof")) { if (cmd.hasOption("op")) { FileOutputFormat.setOutputPath(job.getInternalJob(), new Path(cmd.getOptionValue("op"))); } } if (cmd.hasOption("cf")) { DistributedCache.addCacheFile(new URI(cmd.getOptionValue("cf")), job.getConfiguration()); } }
minWorkers, maxWorkers, 100.0f); FileOutputFormat.setOutputPath(bspJob.getInternalJob(), new Path(cmd.getOptionValue('o'))); boolean verbose = false;
Job internalJob = job.getInternalJob(); if (conf.hasVertexInputFormat()) { GiraphFileInputFormat.setVertexInputPath(internalJob.getConfiguration(), new Path(edgeInputFile.toString())); FileOutputFormat.setOutputPath(job.getInternalJob(), new Path(outputDir.toString()));
Job internalJob = job.getInternalJob();