[ https://issues.apache.org/jira/browse/YARN-5227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15349709#comment-15349709 ]
Gergely Novák commented on YARN-5227: ------------------------------------- If both the appId and the containerId are specified, the appId will be interpreted in the block you quoted and the containerId will be interpreted in line 233-241: {code} if (containerId == null) { containerId = ContainerId.fromString(containerIdStr); if (!containerId.getApplicationAttemptId().getApplicationId() .equals(appId)) { System.err.println("The Application:" + appId + " does not have the container:" + containerId); return -1; } } {code} I will change the error message in the next patch according to your suggestion. > 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