I have a requirement to write Yarn application logs from EMR to different source other than S3 .. Can you please lep me where does applications logs get saved in EMR master instance
Asked
Active
Viewed 5,192 times
2 Answers
4
If the application is submitted to the emr as a step then the logs will reside in:
/var/log/hadoop/steps/<<step-id>>/<<log-file>>
most logs for emr can be found under the /var/logs
directory in the master node
you could also use the yarn cli to get the application logs and redirect the returned log stream to a file to do whatever you want with.
yarn logs -applicationId <<application_id>> > application_log_file.log

randal25
- 1,290
- 13
- 10
3
Yarn logs are found at /var/log/hadoop-yarn/
, and yarn container logs are found at /var/log/hadoop-yarn/container