我如何调试Hadoop地图减少 [英] How can i debug Hadoop map reduce
问题描述
它运行完成,但最后出现奇怪的数据。
当我尝试使用system.out.println(调试数据)
调试它不会显示在屏幕上。
使用java API生成外部日志文件,尝试使用log.severe(日志数据)或使用log4j日志记录方法打印到屏幕log.info(日志数据)不工作/
没有任何工作,唯一的时候,我看到我的调试消息是当地图减少工作有例外。
如何修复,所以我可以在文件或屏幕上看到我的调试消息?
这个答案可能有帮助。 Hadoop捕获System.out,用于自己的作业跟踪记录系统。
im trying to build a map reduce job.
it runs to completion but present weird data at the end.
when i try to debug it using system.out.println("debug data") it doesnt show on screen.
using the java API to produce an external log file, trying to print to the screen using log.severe("log data") or using log4j logger method log.info(log data) wont work either/
nothing works the only time i see my debug messages is when there is an exception in the map reduce job.
how can it be fixed so i can see my debug messages either on a file or on the screen?
This answer may help. Hadoop captures System.out for it's own job tracking logging system.
这篇关于我如何调试Hadoop地图减少的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!