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

Varun Vasudev commented on MAPREDUCE-5810:
------------------------------------------

This is expected behaviour. The test looks at two variables HADOOP_ROOT_LOGGER 
and HADOOP_CLIENT_OPTS. HADOOP_ROOT_LOGGER is explicitly unset by 
StreamJob.java. MAPREDUCE-5806 stops setting log settings as part of 
HADOOP_CLIENT_OPTS. If users wish to set HADOOP_CLIENT_OPTS for the map tasks, 
they can set it via the AM settings.
I agree with [~ajisakaa] that we should remove the test.

> TestStreamingTaskLog#testStreamingTaskLogWithHadoopCmd is failing
> -----------------------------------------------------------------
>
>                 Key: MAPREDUCE-5810
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5810
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>          Components: contrib/streaming
>    Affects Versions: 3.0.0, 2.4.0
>            Reporter: Mit Desai
>            Assignee: Akira AJISAKA
>         Attachments: MAPREDUCE-5810.patch, log.txt
>
>
> testStreamingTaskLogWithHadoopCmd(org.apache.hadoop.streaming.TestStreamingTaskLog)
>   Time elapsed: 44.069 sec  <<< FAILURE!
> java.lang.AssertionError: environment set for child is wrong
>       at org.junit.Assert.fail(Assert.java:93)
>       at org.junit.Assert.assertTrue(Assert.java:43)
>       at 
> org.apache.hadoop.streaming.TestStreamingTaskLog.runStreamJobAndValidateEnv(TestStreamingTaskLog.java:157)
>       at 
> org.apache.hadoop.streaming.TestStreamingTaskLog.testStreamingTaskLogWithHadoopCmd(TestStreamingTaskLog.java:107)
> Results :
> Failed tests: 
>   
> TestStreamingTaskLog.testStreamingTaskLogWithHadoopCmd:107->runStreamJobAndValidateEnv:157
>  environment set for child is wrong



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to