@awsekfozc
2015-11-21T05:55:40.000000Z
字数 1182
阅读 1516
HA
<!--yarn-site.xml -->
<!--启用YARN HA-->
<property>
<name>yarn.resourcemanager.ha.enabled</name>
<value>true</value>
</property>
<!--id-->
<property>
<name>yarn.resourcemanager.cluster-id</name>
<value>yarn-cluster</value>
</property>
<!--RM id-->
<property>
<name>yarn.resourcemanager.ha.rm-ids</name>
<value>rm129,rm130</value>
</property>
<!--rm129 host-->
<property>
<name>yarn.resourcemanager.hostname.rm129</name>
<value>hadoop01.zc.com</value>
</property>
<!--rm130 host-->
<property>
<name>yarn.resourcemanager.hostname.rm130</name>
<value>hadoop02.zc.com</value>
</property>
<!--ZK host-->
<property>
<name>yarn.resourcemanager.zk-address</name>
<value>hadoop.zc.com:2181,hadoop01.zc.com:2181,hadoop02.zc.com:2181</value>
</property>
<!--yarn-site.xml -->
<!--启动RM restart -->
<property>
<name>yarn.resourcemanager.recovery.enabled</name>
<value>true</value>
</property>
<!--RM restart store-->
<property>
<name>yarn.resourcemanager.store.class</name>
<value>org.apache.hadoop.yarn.server.resourcemanager.recovery.ZKRMStateStore</value>
</property>
<!--启动zk组件-->
$ bin/zkServer.sh start
<!--启动RM rm129,rm130-->
$ sbin/yarn-daemon.sh start resourcemanager
在此输入正文