hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhijie Shen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-2301) Improve yarn container command
Date Wed, 23 Jul 2014 14:32:39 GMT

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

Zhijie Shen commented on YARN-2301:
-----------------------------------

[~sunilg], thanks for your input. Here's my response.

bq. And <additional opts> is only for one of the type named appId. May be it may confuse
user also, like which sub option needs the <additional opts>. 

I don't worry too much about it, because we can update the usage block to let users how to
use the opts correctly. When users make the mistake, they will be redirect the usage output.

bq. I feel may be we can have a new command itself for listing application container.

I incline not to change the command to keep backward compatibility.

bq. I feel sequential checks with ConverterUtils.toApplicationID and ConverterUtils.toApplicationAttemptId
has to be done to know whether input is appId|appAttemptId.

We can use ConverterUtils.APPLICATION_PREFIX and ConverterUtils.APPLICATION_ATTEMPT_PREFIX
to check the prefix of the given id to determine whether it is the app id or the app attempt
id. We don't need to handle the exception actually.

> Improve yarn container command
> ------------------------------
>
>                 Key: YARN-2301
>                 URL: https://issues.apache.org/jira/browse/YARN-2301
>             Project: Hadoop YARN
>          Issue Type: Improvement
>            Reporter: Jian He
>            Assignee: Naganarasimha G R
>              Labels: usability
>
> While running yarn container -list <Application Attempt ID> command, some observations:
> 1) the scheme (e.g. http/https  ) before LOG-URL is missing
> 2) the start-time is printed as milli seconds (e.g. 1405540544844). Better to print as
time format.
> 3) finish-time is 0 if container is not yet finished. May be "N/A"
> 4) May have an option to run as yarn container -list <appId> OR  yarn application
-list-containers <appId> also.  
> As attempt Id is not shown on console, this is easier for user to just copy the appId
and run it, may  also be useful for container-preserving AM restart. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message