问题已经解决 在mapred-site.xml中添加
<property>
<name>mapreduce.application.classpath</name>
<value>
/usr/hadoop/etc/hadoop,
/usr/hadoop/share/hadoop/common/*,
/usr/hadoop/share/hadoop/common/lib/*,
/usr/hadoop/share/hadoop/hdfs/*,
/usr/hadoop/share/hadoop/hdfs/lib/*,
/usr/hadoop/share/hadoop/mapreduce/*,
/usr/hadoop/share/hadoop/mapreduce/lib/*,
/usr/hadoop/share/hadoop/yarn/*,
/usr/hadoop/share/hadoop/yarn/lib/*
</value>
</property> |