YARN 与Maprd 配置

<!-- yarn 配置 -->
<!-- yarn-sit.xml -->
<property>
    <name>yarn.resourcemanager.hostname</name>
    <value>master</value>    
</property>    

<property>
    <name>yarn.nodemanager.aux-services</name>
    <value>mapreduce_shuffle</value>
</property>

<property>
    <name>yarn.nodemanager.aux-services.mapreduce_shuffle.class</name>
    <value>org.apache.hadoop.mapred.ShuffleHandler</value>
</property>

<property>
    <name>yarn.nodemanager.resource.memory-mb</name>
    <value>20480</value>
</property>
<property>
   <name>yarn.scheduler.minimum-allocation-mb</name>
   <value>2048</value>
</property>
<property>
    <name>yarn.nodemanager.vmem-pmem-ratio</name>
    <value>2.1</value>
</property>

<!-- mapred-sit.xml配置 -->
<property>
    <name>mapreduce.framework.name</name>
    <value>yarn</value>
</property>
View Code

 

posted @ 2019-03-28 11:21  雷神约  阅读(151)  评论(0编辑  收藏  举报