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 "Naganarasimha G R (JIRA)" <ji...@apache.org> on 2015/11/14 00:44:11 UTC
[jira] [Commented] (YARN-2859) ApplicationHistoryServer binds to
default port 8188 in MiniYARNCluster
[ https://issues.apache.org/jira/browse/YARN-2859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15004923#comment-15004923 ]
Naganarasimha G R commented on YARN-2859:
-----------------------------------------
[~sjlee0] as you mentioned in YARN-4350, your hunch was in deed correct. This fix is not correct and when we try to execute distributed shell, AM fails with following logs
{code}
2015-11-14 07:30:04,851 INFO [main] impl.ContainerManagementProtocolProxy (ContainerManagementProtocolProxy.java:<init>(81)) - yarn.client.max-cached-nodemanagers-proxies : 0
2015-11-14 07:30:05,459 INFO [main] impl.TimelineClientImpl (TimelineClientImpl.java:serviceInit(296)) - Timeline service address: http://root1-ThinkPad-T440p:0/ws/v1/timeline/
2015-11-14 07:30:05,476 INFO [main] impl.TimelineClientImpl (TimelineClientImpl.java:logException(213)) - Exception caught by TimelineClientConnectionRetry, will try 30 more time(s).
{code}
Actual fix should be making use of {{ServerSocketUtil.getPort}}
something like
{code}
String hostname = MiniYARNCluster.getHostname();
int port = ServerSocketUtil.getPort(7188, 10);
conf.set(YarnConfiguration.TIMELINE_SERVICE_ADDRESS,
hostname + ":" + port);
conf.set(YarnConfiguration.TIMELINE_SERVICE_WEBAPP_ADDRESS,
hostname + ":" + port);
{code}
which can make it work. If required i can provide a patch for this. Please inform.
> ApplicationHistoryServer binds to default port 8188 in MiniYARNCluster
> ----------------------------------------------------------------------
>
> Key: YARN-2859
> URL: https://issues.apache.org/jira/browse/YARN-2859
> Project: Hadoop YARN
> Issue Type: Bug
> Components: timelineserver
> Reporter: Hitesh Shah
> Assignee: Vinod Kumar Vavilapalli
> Priority: Critical
> Fix For: 2.8.0, 2.7.2, 2.6.3
>
> Attachments: YARN-2859.txt
>
>
> In mini cluster, a random port should be used.
> Also, the config is not updated to the host that the process got bound to.
> {code}
> 2014-11-13 13:07:01,905 INFO [main] server.MiniYARNCluster (MiniYARNCluster.java:serviceStart(722)) - MiniYARN ApplicationHistoryServer address: localhost:10200
> 2014-11-13 13:07:01,905 INFO [main] server.MiniYARNCluster (MiniYARNCluster.java:serviceStart(724)) - MiniYARN ApplicationHistoryServer web address: 0.0.0.0:8188
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)