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 "Steve Loughran (JIRA)" <ji...@apache.org> on 2013/08/12 19:24:49 UTC

[jira] [Commented] (YARN-1059) IllegalArgumentException while starting YARN

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

Steve Loughran commented on YARN-1059:
--------------------------------------

It looks the root cause is that you've got line breaks in the socket addresses and {{Configuration.getSocketAddr()}} doesn't trim the string before trying to parse it.
For now: get the socket values on a single line {{<value>10.245.1.30:9010</value>}} and it should work
                
> IllegalArgumentException while starting YARN
> --------------------------------------------
>
>                 Key: YARN-1059
>                 URL: https://issues.apache.org/jira/browse/YARN-1059
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: resourcemanager
>    Affects Versions: 2.0.5-alpha
>         Environment: Ubuntu 12.04, hadoop 2.0.5
>            Reporter: rvller
>
> Here is the traceback while starting the yarn resourse manager:
> 2013-08-12 12:53:29,319 FATAL org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Error starting ResourceManager
> java.lang.IllegalArgumentException: Does not contain a valid host:port authority: 
> 10.245.1.30:9030
>  (configuration property 'yarn.resourcemanager.resource-tracker.address')
> 	at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:193)
> 	at org.apache.hadoop.conf.Configuration.getSocketAddr(Configuration.java:1450)
> 	at org.apache.hadoop.yarn.server.resourcemanager.ResourceTrackerService.init(ResourceTrackerService.java:105)
> 	at org.apache.hadoop.yarn.service.CompositeService.init(CompositeService.java:58)
> 	at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.init(ResourceManager.java:255)
> 	at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:710)
> And here is the yarn-site.xml:
> <configuration>
> <property>
> <name>
> yarn.resourcemanager.address
> </name>
> <value>
> 10.245.1.30:9010
> </value>
> <description>
> </description>
> </property>
> <property>
> <name>
> yarn.resourcemanager.scheduler.address
> </name>
> <value>
> 10.245.1.30:9020
> </value>
> <description>
> </description>
> </property>
> <property>
> <name>
> yarn.resourcemanager.resource-tracker.address
> </name>
> <value>
> 10.245.1.30:9030
> </value>
> <description>
> </description>
> </property>
> <property>
> <name>
> yarn.resourcemanager.admin.address
> </name>
> <value>
> 10.245.1.30:9040
> </value>
> <description>
> </description>
> </property>
> <property>
> <name>
> yarn.resourcemanager.webapp.address
> </name>
> <value>
> 10.245.1.30:9050
> </value>
> <description>
> </description>
> </property>
> <!-- Site specific YARN configuration properties -->
> </configuration>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira