Search code examples
hadoopmapreduce

How to print on console during MapReduce job execution in hadoop


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


Solution

  • 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.