mapred-site.xml配置

<configuration>
<property>
        <name>mapreduce.framework.name</name>
        <value>yarn</value>
        <description>设置资源调度</description>
    </property>
<property>
 <name>mapreduce.application.classpath</name>
 <value>
     /root/BigData/hadoop-3.0.0/etc/hadoop,
     /root/BigData/hadoop-3.0.0/share/hadoop/common/*,
     /root/BigData/hadoop-3.0.0/share/hadoop/common/lib/*,
     /root/BigData/hadoop-3.0.0/share/hadoop/hdfs/*,
     /root/BigData/hadoop-3.0.0/share/hadoop/hdfs/lib/*,
     /root/BigData/hadoop-3.0.0/share/hadoop/mapreduce/*,
     /root/BigData/hadoop-3.0.0/share/hadoop/mapreduce/lib/*,
     /root/BigData/hadoop-3.0.0/share/hadoop/yarn/*,
     /root/BigData/hadoop-3.0.0/share/hadoop/yarn/lib/*
</value>
 <description>设置MapReduce资源调度类路径,如果不设置可能会报错</description>
</property>
</configuration>
    原文作者:冰冰大象
    原文地址: https://www.jianshu.com/p/e49476fe852c
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞