You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Xuan Gong (JIRA)" <ji...@apache.org> on 2016/05/12 23:26:12 UTC
[jira] [Commented] (YARN-5080) Cannot obtain logs using YARN CLI
-am for either KILLED or RUNNING AM
[ https://issues.apache.org/jira/browse/YARN-5080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15282240#comment-15282240 ]
Xuan Gong commented on YARN-5080:
---------------------------------
The issue is that we use the wrong way to get RM web address.
In LogsCLI#getAMContainerInfoForRMWebService:
{code}
String webAppAddress =
WebAppUtils.getWebAppBindURL(conf, YarnConfiguration.RM_BIND_HOST,
WebAppUtils.getRMWebAppURLWithScheme(conf));
{code}
we should directly use
{code}
String webAppAddress = WebAppUtils.getRMWebAppURLWithScheme(conf);
{code}
> Cannot obtain logs using YARN CLI -am for either KILLED or RUNNING AM
> ---------------------------------------------------------------------
>
> Key: YARN-5080
> URL: https://issues.apache.org/jira/browse/YARN-5080
> Project: Hadoop YARN
> Issue Type: Bug
> Components: yarn
> Affects Versions: 2.8.0
> Reporter: Sumana Sathish
> Assignee: Xuan Gong
> Priority: Critical
> Attachments: YARN-5080.1.patch
>
>
> When the application is running, if we try to obtain AM logs using
> {code}
> yarn logs -applicationId <applicationId> -am 1
> {code}
> It throws the following error
> {code}
> Unable to get AM container informations for the application:<applicationId>
> Illegal character in scheme name at index 0: 0.0.0.0://<hostname>
> {code}
--
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