You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Zhijie Shen (JIRA)" <ji...@apache.org> on 2013/10/15 03:01:41 UTC

[jira] [Commented] (MAPREDUCE-5576) MR AM unregistration should not be failed due to UnknownHostException on getting history url

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

Zhijie Shen commented on MAPREDUCE-5576:
----------------------------------------

Ah... I forgot *not* in the title, which completely changes my intention. [~kkambatl], thanks for pointing out the problem. Changed the title.

> MR AM unregistration should not be failed due to UnknownHostException on getting history url
> --------------------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-5576
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5576
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>            Reporter: Zhijie Shen
>            Assignee: Zhijie Shen
>
> Before RMCommunicator sends the request to RM to finish the application, it will try to get the JHS url, which may throw UnknownHostException. The current code path will skip sending the request to RM when the exception is raised, which sounds not a reasonable behavior, because RM's unregistering an AM will not affected by the tracking URL. The URL can be empty or null. 
> AFAIK, the impact of null URL will be that the URL to redirect users from RM web page to JHS will be unavailable, and the job report will not show the URL as well. However, is it much much better than failing an application because of UnknownHostException here? Anyway, users can go to JHS directly to find the application history info.
> Therefore, the reasonable code path here should be catching UnknownHostException and set historyUrl = null



--
This message was sent by Atlassian JIRA
(v6.1#6144)