You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Ryota Egashira (JIRA)" <ji...@apache.org> on 2014/08/01 00:58:38 UTC
[jira] [Created] (OOZIE-1958) address duplication of env variables
in oozie.launcher.yarn.app.mapreduce.am.env when running with uber mode
Ryota Egashira created OOZIE-1958:
-------------------------------------
Summary: address duplication of env variables in oozie.launcher.yarn.app.mapreduce.am.env when running with uber mode
Key: OOZIE-1958
URL: https://issues.apache.org/jira/browse/OOZIE-1958
Project: Oozie
Issue Type: Bug
Reporter: Ryota Egashira
Assignee: Ryota Egashira
Hadoop 2.X has the weird behavior to translate yarn.app.mapreduce.am.env,
JAVA_HOME=/home/gs/java/jdk64/current,JAVA_HOME=/home/gs/java/jdk64/current
to
JAVA_HOME=/home/gs/java/jdk64/current:JAVA_HOME=/home/gs/java/jdk64/current
due to this, some of env variables are not taken in effect properly.
this problem happens when running launcher with uber mode in Hadoop 2.X,
since oozie copies mapreduce.map.env to yarn.app.mapreduce.am.env, like following case
{code}
<property>
<name>oozie.launcher.mapreduce.map.env</name>
<value>JAVA_HOME=/home/gs/java/jdk64/current</value>
</property>
<property>
<name>oozie.launcher.yarn.app.mapreduce.am.env</name>
<value>JAVA_HOME=/home/gs/java/jdk64/current</value>
</property>
{code}
this patch is to do
1) Deduplication before appending map.env to am.env
2) If there is a conflict, turn of uber mode AM.
--
This message was sent by Atlassian JIRA
(v6.2#6252)