Hadoop3.1.2运行InvertedIndex程序报错Please check whether your etc/hadoop/mapred-site.xml contains the below configuration: <property> <name>yarn.app.mapreduce.am.env</name> <value>HADOOP_MAPRED_HOME=${full path of your hadoop distribution directory}</value> </property> <property> <name>mapreduce.map.env</name> <value>HADOOP_MAPRED_HOME=${full path of your hadoop distribution directory}</value> </property> <property> <name>mapreduce.reduce.env</name> <value>HADOOP_MAPRED_HOME=${full path of your hadoop distribution directory}</value> </property>
时间: 2023-05-17 14:06:17 浏览: 219
Hadoop mapreduce 实现InvertedIndexer倒排索引
这个错误提示是因为在运行InvertedIndex程序时,Hadoop无法找到正确的环境变量。你需要检查etc/hadoop/mapred-site.xml文件中是否包含上述配置,并将${full path of your hadoop distribution directory}替换为你的Hadoop安装目录的完整路径。
阅读全文