hadoop cdh4.5 mapreduce yarn 配置文件 (接上文)

yarn-site.xml:

<configuration>
<!-- Site specific YARN configuration properties -->

    <property>
        <name>yarn.resourcemanager.hostname</name>
        <value>192.168.1.111</value>
    </property>


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


<property>
        <name>yarn.nodemanager.local-dirs</name>
        <value>/usr/local/hadoop/yarn/nm/local-dirs</value>
    </property>
<property>
        <name>yarn.resourcemanager.fs.state-store.uri</name>
        <value>/usr/local/hadoop/yarn/rm/fs/state-store/uri</value>
    </property>

<property>
        <name>yarn.resourcemanager.address</name>
        <value>192.168.1.111:8050</value>
    </property>

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


<property>
<name>yarn.resourcemanager.resource-tracker.address</name>
<value>192.168.1.111:8031</value>
</property>
</configuration>



















mapred-site.xml :

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<!-- Put site-specific property overrides in this file. -->

<configuration>
    <property>
        <name>mapreduce.framework.name</name>
        <value>yarn</value>
    </property>
 <property>
        <name>mapreduce.cluster.local.dir</name>
        <value>/usr/local/hadoop/mr/cluster/local/dir</value>
    </property>
 <property>
        <name>mapreduce.jobtracker.system.dir</name>
        <value>/usr/local/hadoop/mr/jt/system/dir</value>
    </property>
 <property>
        <name>mapreduce.jobtracker.staging.root.dir</name>
        <value>/usr/local/hadoop/mr/jt/staging/root/dir</value>
    </property>
 <property>
        <name>mapreduce.cluster.temp.dir</name>
        <value>/usr/local/hadoop/mr/cluster/temp/dir</value>
    </property>

</configuration>




你可能感兴趣的:(hadoop cdh4.5 mapreduce yarn 配置文件 (接上文))