hadoop集群中正在运行的任务,点击“application_1438756578740_5947”连接,而后能看到ApplicationMaters信息,有N个Node节点在运行,而后点击任一个Node的logs连接,会报错以下:“Container does not exist.”apache
added comment in ContainerLogsUtils.getContainerLogDirs() as below.
"It is not required to have null check for container ( container == null ) and throw back exception.Because when container is completed, NodeManager remove container information from its NMContext.Configuring log aggregation to false, container log view request is forwarded to NM. NM does not have completed container information,but still NM serve request forreading container logs."
https://issues.apache.org/jira/browse/YARN-1206
PS: 通过测试,当我启动日志聚合功能(log aggregation to true),而后再启动 hadoop history server(端口是19888)进程,就不会再报“Container does not exist.”markdown
Failed redirect for container_1412602970010_0037_01_000002
Failed while trying to construct the redirect url to the log server. Log Server url may not be configured
Container does not exist.
但在yarn-site.xml下增长以下内容:app
<property>
<name>yarn.log.server.url</name>
<value>http://hnn002.dev.com:19888/jobhistory/logs/</value>
</property>
by default logs from hdfs://user/history/* are not accessible through JobHistory server.
When I changed the permission on hdfs://user/history/
hadoop fs -chmod -R 777 /user/history/oop
参考连接:
https://groups.google.com/a/cloudera.org/forum/#!topic/cdh-user/HBGzj_NG9_s
https://issues.apache.org/jira/browse/YARN-1206测试
尊重原创,未经容许不得转载:
http://blog.csdn.net/stark_summer/article/details/47616773ui
版权声明:本文为博主原创文章,未经博主容许不得转载。google