Hadoop在哪里存储YARN应用程序的日志? [英] Where does Hadoop store the logs of YARN applications?
问题描述
我运行Hortonworks的纱线应用示例的基本示例。该应用程序失败,我想读取日志找出原因。但是我无法在预期位置找到任何文件( / HADOOP_INSTALL_FOLDER / logs
),其中存储了mapreduce作业的日志。
有没有人知道yarn存储非mapreduce日志文件的位置?我必须在xml文件中配置一个特殊的目录吗?
: code> :
存储容器日志的位置。应用程序的本地化日志目录可以在
$ {yarn.nodemanager.log-dirs} / application _ $ {appid}
中找到。单个容器的日志目录将位于名为container _ {$ contid}
的目录下。每个容器目录将包含由该容器生成的stderr,stdin和syslog文件。
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.
Does anybody know where yarn stores the non-mapreduce log files? Do I have to configure a special directory in the xml files?
The container logs should be under yarn.nodemanager.log-dirs
:
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 namedcontainer_{$contid}
. Each container directory will contain the files stderr, stdin, and syslog generated by that container.
这篇关于Hadoop在哪里存储YARN应用程序的日志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!