[ 
https://issues.apache.org/jira/browse/YARN-1900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tsuyoshi OZAWA updated YARN-1900:
---------------------------------

    Attachment: YARN-1900.1.patch

Added validation for the value of {{yarn.log.server.url}}. If the value of 
{{yarn.log.server.url}} is not {{http:// prefix}}, NodeManger log it as follows:

{quote}
2014-06-11 23:22:20,027 INFO org.apache.hadoop.service.AbstractService: Service 
NodeManager failed in state INITED; cause: 
org.apache.hadoop.HadoopIllegalArgumentException: Invalid Configuration: 
yarn.log.server.url doesn't start with  'http://' though 
yarn.log-aggregation-enable is enabled.
org.apache.hadoop.HadoopIllegalArgumentException: Invalid Configuration: 
yarn.log.server.url doesn't start with  'http://' though 
yarn.log-aggregation-enable is enabled.
        at 
org.apache.hadoop.yarn.server.nodemanager.NodeManager.serviceInit(NodeManager.java:226)
        at 
org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
        at 
org.apache.hadoop.yarn.server.nodemanager.NodeManager.initAndStartNodeManager(NodeManager.java:439)
        at 
org.apache.hadoop.yarn.server.nodemanager.NodeManager.main(NodeManager.java:486)
2014-06-11 23:22:20,030 FATAL 
org.apache.hadoop.yarn.server.nodemanager.NodeManager: Error starting 
NodeManager
org.apache.hadoop.HadoopIllegalArgumentException: Invalid Configuration: 
yarn.log.server.url doesn't start with  'http://' though 
yarn.log-aggregation-enable is enabled.
        at 
org.apache.hadoop.yarn.server.nodemanager.NodeManager.serviceInit(NodeManager.java:226)
        at 
org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
        at 
org.apache.hadoop.yarn.server.nodemanager.NodeManager.initAndStartNodeManager(NodeManager.java:439)
        at 
org.apache.hadoop.yarn.server.nodemanager.NodeManager.main(NodeManager.java:486)
{quote}

> yarn.log.server.url needs to specify an http:// prefix
> ------------------------------------------------------
>
>                 Key: YARN-1900
>                 URL: https://issues.apache.org/jira/browse/YARN-1900
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: nodemanager
>    Affects Versions: 2.2.0, 2.3.0, 2.4.0
>            Reporter: Robert On
>            Priority: Minor
>         Attachments: YARN-1900.1.patch
>
>
> If yarn.log.server.url in yarn-site.xml is specified with an http:// prefix 
> and log-aggregation is turned on, the meta-refresh redirect for non-mapreduce 
> jobs will append the url to the end of the current url rather than replace 
> the entire url with the yarn.log.server.url.  This results in a broken 
> redirect for FINISHED yarn jobs.  



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to