public static void main(String[] args) { if(args.length != 12){ System.out.println("Usage: ParamFile1 ParamFile2 ParamFile3 ParamFile4 ofset num"); System.exit(1); } int numDeactivation = Integer.parseInt(args[4]); double offset_factor = Double.parseDouble(args[5]); . . .
public int run(String[] argArray) throws Exception { if (argArray.length != 12) { throw new IllegalArgumentException( "run: Usage: ParamFile1 ParamFile2 ParamFile3 ParamFile4 ofset num"); } GiraphJob job = new GiraphJob(getConf(), getClass().getName()); job.setVertexClass(getClass()); job.setVertexInputFormatClass(SRankVertexInputFormat.class); job.setVertexOutputFormatClass(SRankVertexOutputFormat.class); int numDeactivation = Integer.parseInt(args[4]); double offset_factor = Double.parseDouble(args[5]); if (job.run(true) == true) { return 0; } else { return -1; } } } public static void main(String[] args) throws Exception { System.exit(ToolRunner.run(new SRank(), args)); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)