开发者

How to print on console during MapReduce job execution in hadoop

开发者_如何学Go

I want to print each step of my "map" after its execution on the console.

Something like

System.out.println("Completed Step one"); System.out.println("Completed Step two");

and so on

Is there a special command to do that or is it not possible at all, as System.out.println doesn't seem to work at all ?

Please guide


You can use System.out.println(... To see whats been printed, open the jobtracker web console. Then navigate to your submitted job's link. On the Job page, you will see links to all your individual Map/Reduce tasks. Follow the links.. you will find a link that displays the dump of both the Standard output as well as the Standard error.


You can use the stdout yarn log to check the prints done with System.out.println(). Check this answer:

https://stackoverflow.com/a/35526819/3998212

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜