[
https://issues.apache.org/jira/browse/HADOOP-10424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13947451#comment-13947451
]
Akira AJISAKA commented on HADOOP-10424:
----------------------------------------
At first I divide the assertion to find the cause.
{code}
- assertTrue("environment set for child is wrong", env.contains("INFO,CLA")
- && env.contains("-Dyarn.app.container.log.dir=")
- && env.contains("-Dyarn.app.container.log.filesize=" + logSize)
- && env.contains("-Dlog4j.configuration="));
+ assertTrue("environment set for child should contain INFO,CLA",
+ env.contains("INFO,CLA"));
+ assertTrue(env.contains("-Dyarn.app.container.log.dir="));
+ assertTrue(env.contains("-Dyarn.app.container.log.filesize=" + logSize));
+ assertTrue(env.contains("-Dlog4j.configuration="));
{code}
The test fails at the following.
{code}
+ assertTrue("environment set for child should contain INFO,CLA",
+ env.contains("INFO,CLA"));
{code}
> TestStreamingTaskLog#testStreamingTaskLogWithHadoopCmd is failing
> -----------------------------------------------------------------
>
> Key: HADOOP-10424
> URL: https://issues.apache.org/jira/browse/HADOOP-10424
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 3.0.0
> Reporter: Mit Desai
> Assignee: Akira AJISAKA
> Attachments: 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)