码迷,mamicode.com
首页 > 其他好文 > 详细

Resourcemanager高可用配置

时间:2016-08-02 00:58:05      阅读:216      评论:0      收藏:0      [点我收藏+]

标签:

ResourceManager高可用配置

1. yarn-site.xml配置

<property>

          <name>yarn.resourcemanager.cluster-id</name>

          <value>yarn-ha</value>

    </property>

 

<property>

        <name>yarn.resourcemanager.ha.enabled</name>

        <value>true</value>

    </property>

 

    <property>

        <name>yarn.resourcemanager.ha.rm-ids</name>

        <value>rm1,rm2</value>

    </property>

 

    <property>

        <name>yarn.resourcemanager.hostname.rm1</name>

        <value>vir01</value>

    </property>

 

    <property>

        <name>yarn.resourcemanager.hostname.rm2</name>

        <value>vir02</value>

    </property>

 

    <property>

        <name>yarn.resourcemanager.recovery.enabled</name>

        <value>true</value>

    </property>

 

    <property>

        <name>yarn.resourcemanager.store.class</name>

            <value>org.apache.hadoop.yarn.server.resourcemanager.recovery.ZKRMStateSto re</value>

    </property>

 

    <property>

        <name>yarn.resourcemanager.zk-address</name>

        <value>vir01:2181,vir02:2181,vir03:2181</value>

    </property>

    

 <property>

        <name>yarn.nodemanager.aux-services</name>

        <value>mapreduce_shuffle</value>

    </property>

 

2.mapred-site.xml配置

<property>

<name>mapreduce.framework.name</name>

<value>yarn</value>

</property>

 

Resourcemanager高可用配置

标签:

原文地址:http://www.cnblogs.com/zwgblog/p/5727501.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!