[
https://issues.apache.org/jira/browse/TEZ-1111?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mohammad Kamrul Islam updated TEZ-1111:
---------------------------------------
Attachment: TEZ-1111.2.patch
addressed the review comments.
> TestMRHelpers fails if HADOOP_COMMON_HOME is defined in the shell env
> ---------------------------------------------------------------------
>
> Key: TEZ-1111
> URL: https://issues.apache.org/jira/browse/TEZ-1111
> Project: Apache Tez
> Issue Type: Bug
> Reporter: Mohammad Kamrul Islam
> Assignee: Mohammad Kamrul Islam
> Attachments: TEZ-1111.1.patch, TEZ-1111.2.patch
>
>
> If HADOOP_COMMON_HOME is defined in the shell, the test case fails.
> If I unset HADOOP_COMMON_HOME, it succeeds.
> The test case should be predictable with this common env settings.
> The following interaction shows the error message.
> {noformat}
> $ echo $HADOOP_COMMON_HOME
> /Users/mislam/softwares/hadoop/current
> $ mvn clean package -Dtest=TestMRHelpers
> …
> ….
> testMREnvSetupForMap(org.apache.tez.mapreduce.hadoop.TestMRHelpers) Time
> elapsed: 0.016 sec <<< FAILURE!
> org.junit.ComparisonFailure: expected:<$PWD:[$HADOOP_COMMON_HOME]/lib/native>
> but was:<$PWD:[/Users/mislam/softwares/hadoop/current]/lib/native>
> at org.junit.Assert.assertEquals(Assert.java:115)
> at org.junit.Assert.assertEquals(Assert.java:144)
> at
> org.apache.tez.mapreduce.hadoop.TestMRHelpers.testCommonEnvSettingsForMRTasks(TestMRHelpers.java:339)
> at
> org.apache.tez.mapreduce.hadoop.TestMRHelpers.testMREnvSetupForMap(TestMRHelpers.java:355)
> ...
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)