hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vikas Parashar <para.vi...@gmail.com>
Subject Re: How to find execution time of a MapReduce job?
Date Fri, 15 May 2015 15:45:20 GMT
Hi,

You can get it from yarn api. You have to find out difference beteen
accpted and finish state of Job.

Sent from my really tiny device :)

On Friday, May 15, 2015, Answer Agrawal <yrsna.tset01@gmail.com> wrote:

> Hi,
>
>
> 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 above is the correct way to find. Is there any other method
> or API to find the execution time of a MapReduce job?
>
> Thanks,
>

Mime
View raw message