This is an automated email from the ASF dual-hosted git repository.
mwalch pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/fluo-muchos.git
The following commit(s) were added to refs/heads/master by this push:
new f9ef5ce Fixes #236 - Map reduce not running with hadoop 3 (#238)
f9ef5ce is described below
commit f9ef5ce8b43c466fe64f31cfbf618ea73b9b83bb
Author: Mike Walch <[email protected]>
AuthorDate: Wed Nov 21 16:41:00 2018 -0500
Fixes #236 - Map reduce not running with hadoop 3 (#238)
Update configuration template to set additional variables when Hadoop 3 is
detected.
---
ansible/roles/hadoop/templates/mapred-site.xml | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/ansible/roles/hadoop/templates/mapred-site.xml
b/ansible/roles/hadoop/templates/mapred-site.xml
index 93a57d5..157351a 100644
--- a/ansible/roles/hadoop/templates/mapred-site.xml
+++ b/ansible/roles/hadoop/templates/mapred-site.xml
@@ -35,4 +35,18 @@
{%- if not loop.last -%} , {%- endif -%}
{%- endfor %}</value>
</property>
+{% if hadoop_major_version == '3' %}
+ <property>
+ <name>yarn.app.mapreduce.am.env</name>
+ <value>HADOOP_MAPRED_HOME={{ hadoop_home }}</value>
+ </property>
+ <property>
+ <name>mapreduce.map.env</name>
+ <value>HADOOP_MAPRED_HOME={{ hadoop_home }}</value>
+ </property>
+ <property>
+ <name>mapreduce.reduce.env</name>
+ <value>HADOOP_MAPRED_HOME={{ hadoop_home }}</value>
+ </property>
+{% endif %}
</configuration>