MichaelDuan
2019-03-16 19:23
提交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
我之前也是下载的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>
Hadoop基础及演练
52268 学习 · 64 问题
相似问题