bsp.setInputPath(new Path(conf.get(inputMatrixPathString)));
FileOutputFormat.setOutputPath(bsp, new Path(conf.get(outputPathString)));
BSPJobClient jobClient = new BSPJobClient(conf);
ClusterStatus cluster = jobClient.getClusterStatus(true);
int requestedTasks = conf.getInt(requestedBspTasksString, -1);
if (requestedTasks != -1) {
bsp.setNumBspTask(requestedTasks);
} else {
bsp.setNumBspTask(cluster.getMaxTasks());
}
long startTime = System.currentTimeMillis();
if (bsp.waitForCompletion(true)) {
LOG.info("Job Finished in " + (System.currentTimeMillis() - startTime)