Solution:
This error is: the configuration format in yarn is incorrect, for example:
<property><name>yarn.resourcemanager.address</name><value>Master:8032</value></property><property>
No space is allowed between <value> labels. Remove space OK.
The exception stack is as follows:
2014-08-30 10:20:30,171 INFO org.apache.hadoop.service.AbstractService: Service ResourceManager failed in state INITED; cause: java.lang.IllegalArgumentException: Does not contain a valid host:port authority: Master:8031 (configuration property ‘yarn.resourcemanager.resource-tracker.address‘)java.lang.IllegalArgumentException: Does not contain a valid host:port authority: Master:8031 (configuration property ‘yarn.resourcemanager.resource-tracker.address‘) at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:196) at org.apache.hadoop.yarn.conf.YarnConfiguration.getSocketAddr(YarnConfiguration.java:1289) at org.apache.hadoop.yarn.server.resourcemanager.ResourceTrackerService.serviceInit(ResourceTrackerService.java:122) at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) at org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107) at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$RMActiveServices.serviceInit(ResourceManager.java:470) at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.createAndInitActiveServices(ResourceManager.java:823) at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.serviceInit(ResourceManager.java:226) at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:1038)2014-08-30 10:20:30,171 INFO org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Transitioning to standby state2014-08-30 10:20:30,171 INFO org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Transitioned to standby state2014-08-30 10:20:30,171 FATAL org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Error starting ResourceManagerjava.lang.IllegalArgumentException: Does not contain a valid host:port authority: Master:8031 (configuration property ‘yarn.resourcemanager.resource-tracker.address‘) at org.apache.hadoop.net.NetUtils.createSocketAddr(NetUtils.java:196) at org.apache.hadoop.yarn.conf.YarnConfiguration.getSocketAddr(YarnConfiguration.java:1289) at org.apache.hadoop.yarn.server.resourcemanager.ResourceTrackerService.serviceInit(ResourceTrackerService.java:122) at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) at org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107) at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$RMActiveServices.serviceInit(ResourceManager.java:470) at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.createAndInitActiveServices(ResourceManager.java:823) at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.serviceInit(ResourceManager.java:226) at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163) at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:1038)2014-08-30 10:20:30,186 INFO org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: SHUTDOWN_MSG: /************************************************************SHUTDOWN_MSG: Shutting down ResourceManager at VM_160_34_centos/10.207.160.34************************************************************/
Does not contain a valid HOST: Port Authority: MASTER: 8031 (configuration property 'yarn. ResourceManager. resource-tracker.address ')