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-5200) Improve yarn logs to get Container List
Date Tue, 12 Jul 2016 00:33:11 GMT

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

Xuan Gong commented on YARN-5200:
---------------------------------

Thanks for the review.
bq. The following incorrectly shows information about all containers instead of only one
{code}
$HADOOP_YARN_HOME/bin/yarn logs -applicationId application_1468006306667_0004 -show_container_log_info
container_1468006306667_0004_01_000001
{code}

Looks like this is not the correct way to use this option. The right way could be
{code}
To get all container log meta for the specific application:
yarn logs -applicationId application_1468006306667_0004 -show_container_log_info 

To get the specific container log meta for the application:
yarn logs -applicationId application_1468006306667_0004 -containerId container_1468006306667_0004_01_000001
-show_container_log_info

To get the container log meta for the containers which ran on a specific NM:
yarn logs -applicationId application_1468006306667_0004 -nodeAddress ${nodeId} -show_container_log_info
{code}

bq. The above command shouldn't force us to pass both applicationID and containerID (continuation
of YARN-5227)

The commandline:
{code}
yarn logs  -containerId container_1468006306667_0004_01_000001 -show_container_log_info
{code}
works, and it would output the log meta for this container.

Attached a new patch which addressed all other comments

> Improve yarn logs to get Container List
> ---------------------------------------
>
>                 Key: YARN-5200
>                 URL: https://issues.apache.org/jira/browse/YARN-5200
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Xuan Gong
>            Assignee: Xuan Gong
>         Attachments: YARN-5200.1.patch, YARN-5200.2.patch, YARN-5200.3.patch, YARN-5200.4.patch,
YARN-5200.5.patch, YARN-5200.6.patch, YARN-5200.7.patch, YARN-5200.8.patch
>
>




--
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


Mime
View raw message