You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Xuan Gong (JIRA)" <ji...@apache.org> on 2016/06/12 03:47:21 UTC
[jira] [Commented] (YARN-5224) Logs for a completed container are
not available in the yarn logs output for a live application
[ https://issues.apache.org/jira/browse/YARN-5224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15326173#comment-15326173 ]
Xuan Gong commented on YARN-5224:
---------------------------------
Right now, we are calling NMWebService to get Container logs for the running applications. We could still get the logs if the container logs still exist in NM Local log directory even if we remove container from NMContext.
So, the real issue here is that before we call NMWebService to get Container log, we need to filter the logs based on the --logFiles input (by default, if we do not specify it, we are using "syslog"). To get all file names for the container, we need to call NMWebService to get ContainerInfo. This NMWebService call only works when we have container in NMContext.
If the container finishes, we would remove the container from NMContext. So, for the finished container in the running applications, we could not find its logs.
To solve this issue, we need to create a separate NMWebService to get log name of the container. Attached a new patch for this.
> Logs for a completed container are not available in the yarn logs output for a live application
> -----------------------------------------------------------------------------------------------
>
> Key: YARN-5224
> URL: https://issues.apache.org/jira/browse/YARN-5224
> Project: Hadoop YARN
> Issue Type: Sub-task
> Affects Versions: 2.9.0
> Reporter: Siddharth Seth
> Assignee: Xuan Gong
> Attachments: YARN-5224.1.patch
>
>
> This affects 'short' jobs like MapReduce and Tez more than long running apps.
> Related: YARN-5193 (but that only covers long running apps)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org