为了账号安全,请及时绑定邮箱和手机立即绑定

提交hadoop文件出现配置 ”Please check whether your etc/hadoop/mapred-site.xml contains the below configuration“的问题

提交hadoop出来出现配置问题 

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>

然后我配置 ${full path of your hadoop distribution directory} 提示如下错误  ${/usr/local/hadoop/hadoop-3.0.2/share/hadoop/mapreduce*},这里HADOOP_MAPRED_HOME=到底配置为什么?

appcache/application_1552702831010_0007/container_1552702831010_0007_02_000001/launch_container.sh: line 19: ${/usr/local/hadoop/hadoop-3.0.2/share/hadoop/mapreduce*}: bad substitution

正在回答

1 回答

我之前也是下载的hadoop 3.0版本,但是会出现很多错误。后来找运维朋友他建议用hadoop-2.7.3版本。

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>mapred.job.tracker</name>

        <value>hdfs://localhost:9001</value>

    </property>

    <property>

        <name>mapred.tasktracker.map.tasks.maximum</name>

        <value>2</value>

    </property>

    <property>

        <name>mapred.tasktracker.reduce.tasks.maximum</name>

        <value>2</value>

    </property>

</configuration>


0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

提交hadoop文件出现配置 ”Please check whether your etc/hadoop/mapred-site.xml contains the below configuration“的问题

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信