System.out.println在Hadoop Driver类中。

huangapple 未分类评论45阅读模式
英文:

System.out.println in Hadoop Driver Class

问题

我想测量Hadoop作业执行的时间。在我的Driver类中,我有:

long start = System.currentTimeMillis();
long end = System.currentTimeMillis();
System.out.println(end - start);

但是Hadoop把System.out.println()发送到哪里呢?

编辑

当程序结束时,终端会打印出作业计数器,我能否获得总执行时间如下:

Total execution time = 所有映射任务在占用槽中花费的总时间 + 所有减少任务在占用槽中花费的总时间 + 所有映射任务花费的总时间 + 所有减少任务花费的总时间

英文:

I want to measure time to Hadoop job to execute. In my Driver class I have:

long start = System.currentTimeMillis();
long end = System.currentTimeMillis();
System.out.println(end-start);

But where does hadoop send the System.out.println()?

EDIT

When the program ends the terminal prints out Job Counters, can I get the total execution time as:

Total execution time = Total time spent by all maps in occupied slots + Total time spent by all reduces in occupied slots + Total time spent by all maps task + Total time spent by all reduces task ?

huangapple
  • 本文由 发表于 2020年5月2日 17:09:11
  • 转载请务必保留本文链接:https://java.coder-hub.com/61556933.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定