Hadoop 在哪里存储 YARN 应用程序的日志? [英] Where does Hadoop store the logs of YARN applications?

查看:28
本文介绍了Hadoop 在哪里存储 YARN 应用程序的日志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行了 Hortonworks 的纱线应用程序示例的基本示例.应用程序失败,我想阅读日志以找出原因.但是我在存储我的 mapreduce 作业日志的预期位置 (/HADOOP_INSTALL_FOLDER/logs) 找不到任何文件.

I run the basic example of Hortonworks' yarn application example. The application fails and I want to read the logs to figure out why. But I can't find any files at the expected location (/HADOOP_INSTALL_FOLDER/logs) where the logs of my mapreduce jobs are stored.

有人知道yarn在哪里存储非mapreduce日志文件吗?我必须在 xml 文件中配置一个特殊目录吗?

Does anybody know where yarn stores the non-mapreduce log files? Do I have to configure a special directory in the xml files?

推荐答案

容器日志应该在 yarn.nodemanager.log-dirs:

The container logs should be under yarn.nodemanager.log-dirs:

容器日志的存储位置.应用程序的本地化日志目录位于 ${yarn.nodemanager.log-dirs}/application_${appid}.单个容器的日志目录将在此之下,在名为 container_{$contid} 的目录中.每个容器目录将包含该容器生成的 stderr、stdin 和 syslog 文件.

Where to store container logs. An application's localized log directory will be found in ${yarn.nodemanager.log-dirs}/application_${appid}. Individual containers' log directories will be below this, in directories named container_{$contid}. Each container directory will contain the files stderr, stdin, and syslog generated by that container.

这篇关于Hadoop 在哪里存储 YARN 应用程序的日志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆