[ 
https://issues.apache.org/jira/browse/MAPREDUCE-6702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15312852#comment-15312852
 ] 

Gera Shegalov commented on MAPREDUCE-6702:
------------------------------------------

This regression is introduced by 
{code}
commit 9d4d30243b0fc9630da51a2c17b543ef671d035c
Author: Robert Kanter <[email protected]>
Date:   Thu Apr 28 19:24:38 2016 -0700

    Remove parent's env vars from child processes
{code}

I am not sure what JIRA this commit represents (cc [~rkanter] for comment ) . 
It seems it should be reverted until further discussion. When the parent 
process environment including PATH is not inherited all the utils used without 
their absolute path (such as bash above, setsid, etc) stop working. Even if 
they worked the previous contract that this test catches is violated: you 
should be able to augment the worker's environment variable A for your job by 
using the idiom 
{code}
A=myPrefix${A}mySuffix 
{code}

However, $\{A\} will now be subbed by the empty string.


> TestMiniMRChildTask.testTaskEnv and TestMiniMRChildTask.testTaskOldEnv are 
> failing
> ----------------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-6702
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-6702
>             Project: Hadoop Map/Reduce
>          Issue Type: Test
>          Components: client
>    Affects Versions: 3.0.0-alpha1
>            Reporter: Daniel Templeton
>            Assignee: Akira AJISAKA
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.hadoop.mapred.TestMiniMRChildTask
> Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 92.48 sec <<< 
> FAILURE! - in org.apache.hadoop.mapred.TestMiniMRChildTask
> testTaskEnv(org.apache.hadoop.mapred.TestMiniMRChildTask)  Time elapsed: 
> 21.906 sec  <<< FAILURE!
> java.lang.AssertionError: The environment checker job failed.
>       at org.junit.Assert.fail(Assert.java:88)
>       at org.junit.Assert.assertTrue(Assert.java:41)
>       at 
> org.apache.hadoop.mapred.TestMiniMRChildTask.runTestTaskEnv(TestMiniMRChildTask.java:550)
>       at 
> org.apache.hadoop.mapred.TestMiniMRChildTask.testTaskEnv(TestMiniMRChildTask.java:472)
> testTaskOldEnv(org.apache.hadoop.mapred.TestMiniMRChildTask)  Time elapsed: 
> 17.452 sec  <<< FAILURE!
> java.lang.AssertionError: The environment checker job failed.
>       at org.junit.Assert.fail(Assert.java:88)
>       at org.junit.Assert.assertTrue(Assert.java:41)
>       at 
> org.apache.hadoop.mapred.TestMiniMRChildTask.runTestTaskEnv(TestMiniMRChildTask.java:550)
>       at 
> org.apache.hadoop.mapred.TestMiniMRChildTask.testTaskOldEnv(TestMiniMRChildTask.java:496)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to