Where does hadoop mapreduce framework send my System.out.print() statements ? (stdout)

前端 未结 4 514
鱼传尺愫
鱼传尺愫 2020-11-30 20:26

I want to debug a mapreduce script, and without going into much trouble tried to put some print statements in my program. But I cant seem to find them in any of the logs.

4条回答
  •  悲&欢浪女
    2020-11-30 21:33

    On a Hadoop cluster with yarn, you can fetch the logs, including stdout, with:

    yarn logs -applicationId application_1383601692319_0008
    

    For some reason, I've found this to be more complete than what I see in the webinterface. The webinterface did not list the output of System.out.println() for me.

提交回复
热议问题