MAPREDUCE-3280. Removed the unnecessary job user-name configuration in mapred-site.xml. (vinodkv)
svn merge -c r1200441 --ignore-ancestry ../../trunk/ git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1200444 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cfbea52bd9
commit
b7ff3d01b5
|
@ -18,6 +18,9 @@ Release 0.23.1 - Unreleased
|
||||||
MAPREDUCE-3336. Replaced guice internal.Preconditions api usage with the
|
MAPREDUCE-3336. Replaced guice internal.Preconditions api usage with the
|
||||||
public Preconditions API. (Thomas Graves via vinodkv)
|
public Preconditions API. (Thomas Graves via vinodkv)
|
||||||
|
|
||||||
|
MAPREDUCE-3280. Removed the unnecessary job user-name configuration in
|
||||||
|
mapred-site.xml. (vinodkv)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
|
|
@ -130,8 +130,8 @@ class YarnChild {
|
||||||
|
|
||||||
// Initiate Java VM metrics
|
// Initiate Java VM metrics
|
||||||
JvmMetrics.initSingleton(jvmId.toString(), job.getSessionId());
|
JvmMetrics.initSingleton(jvmId.toString(), job.getSessionId());
|
||||||
LOG.debug("Remote user: " + job.get("user.name"));
|
childUGI = UserGroupInformation.createRemoteUser(System
|
||||||
childUGI = UserGroupInformation.createRemoteUser(job.get("user.name"));
|
.getenv(ApplicationConstants.Environment.USER.toString()));
|
||||||
// Add tokens to new user so that it may execute its task correctly.
|
// Add tokens to new user so that it may execute its task correctly.
|
||||||
for(Token<?> token : UserGroupInformation.getCurrentUser().getTokens()) {
|
for(Token<?> token : UserGroupInformation.getCurrentUser().getTokens()) {
|
||||||
childUGI.addToken(token);
|
childUGI.addToken(token);
|
||||||
|
|
|
@ -1224,12 +1224,4 @@
|
||||||
mapreduce.job.end-notification.max.retry.interval</description>
|
mapreduce.job.end-notification.max.retry.interval</description>
|
||||||
</property>
|
</property>
|
||||||
|
|
||||||
<property>
|
|
||||||
<name>mapreduce.job.user.name</name>
|
|
||||||
<value>${user.name}</value>
|
|
||||||
<description>The user name for the job submitter, configurable only in
|
|
||||||
non-secure mode. In secure mode Kerberos authentication is necessary.
|
|
||||||
</description>
|
|
||||||
</property>
|
|
||||||
|
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|
|
@ -71,7 +71,6 @@ public class MiniMRYarnCluster extends MiniYARNCluster {
|
||||||
@Override
|
@Override
|
||||||
public void init(Configuration conf) {
|
public void init(Configuration conf) {
|
||||||
conf.set(MRConfig.FRAMEWORK_NAME, MRConfig.YARN_FRAMEWORK_NAME);
|
conf.set(MRConfig.FRAMEWORK_NAME, MRConfig.YARN_FRAMEWORK_NAME);
|
||||||
conf.set(MRJobConfig.USER_NAME, System.getProperty("user.name"));
|
|
||||||
conf.set(MRJobConfig.MR_AM_STAGING_DIR, new File(getTestWorkDir(),
|
conf.set(MRJobConfig.MR_AM_STAGING_DIR, new File(getTestWorkDir(),
|
||||||
"apps_staging_dir/${user.name}/").getAbsolutePath());
|
"apps_staging_dir/${user.name}/").getAbsolutePath());
|
||||||
conf.set(MRConfig.MASTER_ADDRESS, "test"); // The default is local because of
|
conf.set(MRConfig.MASTER_ADDRESS, "test"); // The default is local because of
|
||||||
|
|
Loading…
Reference in New Issue