hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xuan Gong (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-4966) More improvement to get Container logs without specify nodeId
Date Mon, 25 Apr 2016 17:36:13 GMT

    [ https://issues.apache.org/jira/browse/YARN-4966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15256661#comment-15256661

Xuan Gong commented on YARN-4966:

Thanks, junping for the review.

bq. Why we must need node address if app is not finished? Can we ask RM to get the nodeAddress

So, currently, we could only get the running container report from RM, and get the finished
container report from ATS. It would go to this else-if clause when:
1. the application is running
2. the container is finished
3. this container is not the AM Container, and we only send AM Container metrics to ATS.

This is a good catch. This makes people confuse.
+          System.out.println("Please specify the nodeAddress, and use "
+              + "yarn logs -applicationId <appId> -containerId <containerId>
+              + "--nodeAddress <nodeAddress> to get the container logs");
Have modified the print out message, and make it more clear to users.

> More improvement to get Container logs without specify nodeId
> -------------------------------------------------------------
>                 Key: YARN-4966
>                 URL: https://issues.apache.org/jira/browse/YARN-4966
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Xuan Gong
>            Assignee: Xuan Gong
>         Attachments: YARN-4966.1.patch, YARN-4966.2.patch, YARN-4966.3.patch, YARN-4966.4.patch
> Currently, for the finished application, we can get the container logs without specify
node id, but we need to enable yarn.timeline-service.generic-application-history.enabled.

This message was sent by Atlassian JIRA

View raw message