|
@@ -304,6 +304,10 @@ public class QuasiMonteCarlo extends Configured implements Tool {
|
|
|
System.out.println("Starting Job");
|
|
|
final long startTime = System.currentTimeMillis();
|
|
|
job.waitForCompletion(true);
|
|
|
+ if (!job.isSuccessful()) {
|
|
|
+ System.out.println("Job " + job.getJobID() + " failed!");
|
|
|
+ System.exit(1);
|
|
|
+ }
|
|
|
final double duration = (System.currentTimeMillis() - startTime)/1000.0;
|
|
|
System.out.println("Job Finished in " + duration + " seconds");
|
|
|
|