Mohammad Kamrul Islam created TEZ-1111:
------------------------------------------

             Summary: 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


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)

Reply via email to