我在MapReduce进度中使用了MultopleOutputs解决了一些问题,完成后,控制台显示:
File Input Format Counters
Bytes Read=0
File Output Format Counters
Bytes Written=0
我想获取有关已读字节数和已写字节数的真实信息,如何获得真实信息?
谢谢!
最佳答案
实际上,完成工作后在屏幕上看到的是所有hadoop计数器的列表。
根据MultipleOutputs manual
MultipleOutputs supports counters, by default they are disable
因此,您需要做的就是使用
MultipleOutputs.setCountersEnabled(jobConf, true);
关于hadoop - MapReduce MultipleOutputs输出控制台信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34807969/