Sean, Spark on YARN (https://spark.apache.org/docs/latest/running-on-yarn.html) follows the logging construct of YARN.
If you are using cluster deployment mode on yarn (master=yarn-cluster) then the logging performed in the driver (your code) would be picked up by YARN’s logs in the Application Master container. While the cluster is running and application is running using the Hadoop Resource Manager web UI to access the logs is helpful. If the cluster is terminated and you had logging to S3 enabled (http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-plan-debugging.html#emr-plan-debugging-logs-archive) then the Application Master is the first container for the application id found under /task-attempts/. -Christopher From: Sean Bollin [mailto:[email protected]] Sent: Wednesday, June 17, 2015 5:25 PM To: [email protected] Subject: Where are my log4j or exception output on EMR? I'm running Spark on Amazon EMR using their install bootstrap. My Scala code had println("message here") statements - where can I find the output of these statements? I changed my code to use log4j - my log.info<http://log.info/> and log.error output is nowhere to be found. I've checked /mnt/var/log/hadoop/steps and I can see Spark output .. actually, it looks like YARN output from the spark job - but I don't see my error or log or println statements anywhere. I've also tried the bootstrap script argument --log-dir and pointed it to an S3 location - it creates the directory but doesn't put any logfiles there. Help! :) Sent from my iPhone
