[ https://issues.apache.org/jira/browse/MAPREDUCE-3499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13194138#comment-13194138 ]
Alejandro Abdelnur commented on MAPREDUCE-3499: ----------------------------------------------- John, A couple of things: #1 You changed the setting for the staging dir of *MiniMRYarnCluster* to '/tmp'. Why not the original resolution to the getTestWorkingDir() ? I know it resolves to 'target/...' and in projects like Pig/Hive which use ant and 'build/' dir this would break; but should you create a fresh dir under /tmp then? (using the File.createTempFile() method -you have to create the file, then delete it and then create a dir with that name). #2 I had to tweak the test (how to create the list of valid hosts) to get it to work: Instead doing *conf.set("hadoop.proxyuser." + proxyUser + ".hosts", "10.74.90.219,127.0.0.1");* I've done: {code} StringBuilder sb = new StringBuilder(); sb.append("127.0.0.1,localhost"); for (InetAddress i : InetAddress.getAllByName(InetAddress.getLocalHost().getHostName())) { sb.append(",").append(i.getCanonicalHostName()); } conf.set("hadoop.proxyuser." + proxyUser + ".hosts", sb.toString()); {code} And then the test works. Thanks. > New MiniMR does not setup proxyuser configuration correctly, thus tests using > doAs do not work > ---------------------------------------------------------------------------------------------- > > Key: MAPREDUCE-3499 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-3499 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: mrv2, test > Affects Versions: 0.23.1, 0.24.0 > Reporter: Alejandro Abdelnur > Assignee: John George > Priority: Critical > Labels: bigtop > Fix For: 0.23.1, 0.24.0 > > Attachments: MR-3499.patch, TestForMAPREDUCE-3499.patch > > > The new MiniMR implementation is not taking proxyuser settings. > Because of this, testcases using/testing doAs functionality fail. > This affects all Oozie testcases that use MiniMR. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira