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

前端 未结 4 506
鱼传尺愫
鱼传尺愫 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条回答
  •  萌比男神i
    2020-11-30 21:11

    Actually stdout only shows the System.out.println() of the non-map reduce classes.

    The System.out.println() for map and reduce phases can be seen in the logs. Easy way to access the logs is

    http://localhost:50030/jobtracker.jsp->click on the completed job->click on map or reduce task->click on tasknumber->task logs->stdout logs.

    Hope this helps

提交回复
热议问题