Merge -c 1492962 from trunk to branch-2 to fix MAPREDUCE-5319. Set user.name in job.xml. Contributed by Xuan Gong.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1492963 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
edcdd487b9
commit
451f725b92
|
@ -445,6 +445,8 @@ Release 2.1.0-beta - UNRELEASED
|
|||
MAPREDUCE-5298. Moved MapReduce services to YARN-530 stricter lifecycle.
|
||||
(Steve Loughran via vinodkv)
|
||||
|
||||
MAPREDUCE-5319. Set user.name in job.xml. (Xuan Gong via acmurthy)
|
||||
|
||||
Release 2.0.5-alpha - 06/06/2013
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
|
|
@ -53,6 +53,7 @@ import org.apache.hadoop.mapreduce.protocol.ClientProtocol;
|
|||
import org.apache.hadoop.mapreduce.security.TokenCache;
|
||||
import org.apache.hadoop.mapreduce.split.JobSplitWriter;
|
||||
import org.apache.hadoop.security.Credentials;
|
||||
import org.apache.hadoop.security.UserGroupInformation;
|
||||
import org.apache.hadoop.security.authorize.AccessControlList;
|
||||
import org.apache.hadoop.security.token.Token;
|
||||
import org.apache.hadoop.util.ReflectionUtils;
|
||||
|
@ -354,6 +355,8 @@ class JobSubmitter {
|
|||
Path submitJobDir = new Path(jobStagingArea, jobId.toString());
|
||||
JobStatus status = null;
|
||||
try {
|
||||
conf.set(MRJobConfig.USER_NAME,
|
||||
UserGroupInformation.getCurrentUser().getShortUserName());
|
||||
conf.set("hadoop.http.filter.initializers",
|
||||
"org.apache.hadoop.yarn.server.webproxy.amfilter.AmFilterInitializer");
|
||||
conf.set(MRJobConfig.MAPREDUCE_JOB_DIR, submitJobDir.toString());
|
||||
|
|
Loading…
Reference in New Issue