```xml
<configuration>
   <!--运行模式 -->
   <property>
      <name>mapreduce.framework.name</name>
      <value>yarn</value>
   </property>
   <!--jobhistory properties-->
   <property>
      <name>mapreduce.jobhistory.address</name>
      <value>master:10020</value>
   </property>
   <property>
      <name>mapreduce.jobhistory.webapp.address</name>
      <value>master:19888</value>
   </property>
   <property>
      <name>yarn.app.mapreduce.am.env</name>
      <value>HADOOP_MAPRED_HOME=$(HADOOP_HOME)</value>
   </property>
   <property>
      <name>mapreduce.map.env</name>
      <value>HADOOP_MAPRED_HOME=$(HADOOP_HOME)</value>
   </property>
   <property>
      <name>mapreduce, reduce,env</name>
      <value>HADOOP_MAPRED_HOME=$(HADOOP_HOME)</value>
   </property>
</configuration>

   
   
```