问题
Is there an API to figure out how long a Hadoop job took to execute (exactly -> no hacks.)?
回答1:
I think the simplest way is to measure time in Your driver class. Is it ok for you? I mean something like this:
long start = new Date().getTime();
boolean status = job.waitForCompletion(true);
long end = new Date().getTime();
System.out.println("Job took "+(end-start) + "milliseconds");
来源:https://stackoverflow.com/questions/6860987/time-taken-for-hadoop-job-to-execute