简体   繁体   中英

Where does YARN application logs get stored in EMR before sending to S3

我需要将来自EMR的Yarn应用程序日志写入到S3以外的其他源中。.请问我在EMR主实例中保存应用程序日志的位置是什么

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 

Yarn logs are found at /var/log/hadoop-yarn/ , and yarn container logs are found at /var/log/hadoop-yarn/container

Links:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM