Date date; long start, end; // for recording start and end time of job
date = new Date(); start = date.getTime(); // starting timer
job.waitForCompletion(true)
date = new Date(); end = date.getTime(); //end timer
log.info("Total Time (in milliseconds) = "+ (end-start));
log.info("Total Time (in seconds) = "+ (end-start)*0.001F);
I am not sure this is the correct way to find. Is there any other method or API to find the execution time of a MapReduce job?