Sunday, October 11, 2015

MapReduce - Viewing sysouts in yarn

To view your mapreduce system.out.printlns in YARN

After the job completes, type the below command.

$yarn logs -applicationId <application_1442077641322_19221>

It will display all sysouts in yarn logs.

Use grep along with the above command to view data for a particular text.

$yarn logs -applicationId <application_1442077641322_19221> | grep <mysysout>

Hope it helps.