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

Jian He commented on YARN-5227:
-------------------------------

thanks for working on this. 
The error message seems contradicting with the logic. not sure what the 
intention is. 
We should not fail if appId and containerId are specified at the same time. 
Just that, the appId can be optional if containerId is specified.
{code}
    if (appIdStr == null && containerIdStr == null) {
      System.err.println("ApplicationId can only be null "
          + " if the containerId is specified!");
      printHelpMessage(printOpts);
      return -1;
    }
{code}

> yarn logs command: no need to specify -applicationId when specifying 
> containerId
> --------------------------------------------------------------------------------
>
>                 Key: YARN-5227
>                 URL: https://issues.apache.org/jira/browse/YARN-5227
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Jian He
>            Assignee: Gergely Novák
>         Attachments: YARN-5227.001.patch
>
>
> No need to specify -applicaionId when specifying containerId, because 
> applicationId is retrievable from containerId



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org

Reply via email to