You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Robert Kanter (JIRA)" <ji...@apache.org> on 2013/03/28 19:11:18 UTC

[jira] [Updated] (OOZIE-1291) TestHadoopAccessorService.testGetMRDelegationTokenRenewer fails against Yarn

     [ https://issues.apache.org/jira/browse/OOZIE-1291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Kanter updated OOZIE-1291:
---------------------------------

    Attachment: OOZIE-1291.patch

The code was doing this:
{code:java}
String target = jobConf.get(HADOOP_YARN_RM, jobConf.get(HADOOP_JOB_TRACKER_2));
if (target == null) {
    target = jobConf.get(HADOOP_JOB_TRACKER);
}
{code}

The test was doing this:
{code:java}
jobConf.set("mapred.job.tracker", "localhost:50300");
// Call stuff that does the above code
{code}

"mapred.job.tracker" is HADOOP_JOB_TRACKER, so it has lowest priority when the above code is looking for the address.  When against Yarn, "yarn.resourcemanager.address" is set to 0.0.0.0:port by default and has higher priority (HADOOP_YARN_RM) so it gets picked up instead of the job tracker address (in other words, its using 0.0.0.0 instead of localhost).

The patch simply changes the test to create the {{jobConf}} without the defaults.  With the patch, the test passes against Hadoop 1.1.1 and Yarn
                
> TestHadoopAccessorService.testGetMRDelegationTokenRenewer fails against Yarn
> ----------------------------------------------------------------------------
>
>                 Key: OOZIE-1291
>                 URL: https://issues.apache.org/jira/browse/OOZIE-1291
>             Project: Oozie
>          Issue Type: Bug
>          Components: tests
>    Affects Versions: 3.3.2
>            Reporter: Robert Kanter
>            Assignee: Robert Kanter
>             Fix For: trunk
>
>         Attachments: OOZIE-1291.patch
>
>
> If you run {{TestHadoopAccessorService}} against Yarn (i.e. {{-Phadoop-3}}), you get this test failure:
> {noformat}
> testGetMRDelegationTokenRenewer(org.apache.oozie.service.TestHadoopAccessorService): expected:<ma...@KDC.DOMAIN.COM> but was:<ma...@KDC.DOMAIN.COM>
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira