svn merge -c 1331046. FIXES: MAPREDUCE-4189. TestContainerManagerSecurity is failing (Devaraj K via bobby)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1331048 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e5e15fab74
commit
da0f9645a0
|
@ -309,6 +309,9 @@ Release 0.23.3 - UNRELEASED
|
||||||
MAPREDUCE-4169. Container Logs appear in unsorted order (Jonathan Eagles
|
MAPREDUCE-4169. Container Logs appear in unsorted order (Jonathan Eagles
|
||||||
via bobby)
|
via bobby)
|
||||||
|
|
||||||
|
MAPREDUCE-4189. TestContainerManagerSecurity is failing (Devaraj K via
|
||||||
|
bobby)
|
||||||
|
|
||||||
Release 0.23.2 - UNRELEASED
|
Release 0.23.2 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -47,6 +47,7 @@ import org.apache.hadoop.io.DataInputBuffer;
|
||||||
import org.apache.hadoop.io.Text;
|
import org.apache.hadoop.io.Text;
|
||||||
import org.apache.hadoop.net.NetUtils;
|
import org.apache.hadoop.net.NetUtils;
|
||||||
import org.apache.hadoop.security.AccessControlException;
|
import org.apache.hadoop.security.AccessControlException;
|
||||||
|
import org.apache.hadoop.security.SecurityUtil;
|
||||||
import org.apache.hadoop.security.UserGroupInformation;
|
import org.apache.hadoop.security.UserGroupInformation;
|
||||||
import org.apache.hadoop.security.token.Token;
|
import org.apache.hadoop.security.token.Token;
|
||||||
import org.apache.hadoop.yarn.api.AMRMProtocol;
|
import org.apache.hadoop.yarn.api.AMRMProtocol;
|
||||||
|
@ -401,6 +402,7 @@ public class TestContainerManagerSecurity {
|
||||||
appToken.setService(new Text(schedulerAddr.getHostName() + ":"
|
appToken.setService(new Text(schedulerAddr.getHostName() + ":"
|
||||||
+ schedulerAddr.getPort()));
|
+ schedulerAddr.getPort()));
|
||||||
currentUser.addToken(appToken);
|
currentUser.addToken(appToken);
|
||||||
|
SecurityUtil.setTokenService(appToken, schedulerAddr);
|
||||||
|
|
||||||
AMRMProtocol scheduler = currentUser
|
AMRMProtocol scheduler = currentUser
|
||||||
.doAs(new PrivilegedAction<AMRMProtocol>() {
|
.doAs(new PrivilegedAction<AMRMProtocol>() {
|
||||||
|
|
Loading…
Reference in New Issue