From 6b2f3dd5ce4608a18c251c063c6ef3176142c218 Mon Sep 17 00:00:00 2001 From: Arun Murthy Date: Mon, 17 Oct 2011 04:08:36 +0000 Subject: [PATCH] MAPREDUCE-3101. Changed default value of yarn.resourcemanager.acl.enable to true and added some more documentation. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1184989 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-mapreduce-project/CHANGES.txt | 4 ++++ .../apache/hadoop/yarn/conf/YarnConfiguration.java | 2 +- .../src/main/resources/yarn-default.xml | 2 +- .../src/site/apt/ClusterSetup.apt.vm | 13 ++++++++++++- 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/hadoop-mapreduce-project/CHANGES.txt b/hadoop-mapreduce-project/CHANGES.txt index e6e2ad8cdc..b39933f1eb 100644 --- a/hadoop-mapreduce-project/CHANGES.txt +++ b/hadoop-mapreduce-project/CHANGES.txt @@ -1641,6 +1641,10 @@ Release 0.23.0 - Unreleased MAPREDUCE-3189. Add link decoration back to MR2's CSS. (Todd Lipcon via mahadev) + + MAPREDUCE-3101. Changed default value of yarn.resourcemanager.acl.enable + to true and added some more documentation. (acmurthy) + Release 0.22.0 - Unreleased INCOMPATIBLE CHANGES diff --git a/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/conf/YarnConfiguration.java b/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/conf/YarnConfiguration.java index 23be2a0d50..aec4e194d2 100644 --- a/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/conf/YarnConfiguration.java +++ b/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/conf/YarnConfiguration.java @@ -129,7 +129,7 @@ public class YarnConfiguration extends Configuration { /** Are RM acls enabled.*/ public static final String RM_ACL_ENABLE = RM_PREFIX + "acl.enable"; - public static final boolean DEFAULT_RM_ACL_ENABLE = false; + public static final boolean DEFAULT_RM_ACL_ENABLE = true; /** ACL of who can be admin of RM.*/ public static final String RM_ADMIN_ACL = diff --git a/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/resources/yarn-default.xml b/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/resources/yarn-default.xml index 05e979da4c..806d31cbab 100644 --- a/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/resources/yarn-default.xml +++ b/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/resources/yarn-default.xml @@ -85,7 +85,7 @@ Are RM acls enabled. yarn.resourcemanager.acl.enable - false + true diff --git a/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-site/src/site/apt/ClusterSetup.apt.vm b/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-site/src/site/apt/ClusterSetup.apt.vm index 874abf0fc1..73c856a8d9 100644 --- a/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-site/src/site/apt/ClusterSetup.apt.vm +++ b/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-site/src/site/apt/ClusterSetup.apt.vm @@ -194,17 +194,28 @@ Hadoop MapReduce Next Generation - Cluster Setup | | <<>> host:port for NodeManagers. | | | | | | *-------------------------+-------------------------+------------------------+ +| <<>> | | | +| | <<>> host:port for administrative commands. | | +| | | | +*-------------------------+-------------------------+------------------------+ +| <<>> | | | +| | <<>> web-ui host:port. | | +| | | | +*-------------------------+-------------------------+------------------------+ | <<>> | | | | | <<>> Scheduler class. | | | | | <<>> (recommended) or <<>> | *-------------------------+-------------------------+------------------------+ | <<>> | | | | | <<>> / <<>> | | -| | | Enable ACLs? | +| | | Enable ACLs? Defaults to . | *-------------------------+-------------------------+------------------------+ | <<>> | | | | | Admin ACL | | | | | ACL to set admins on the cluster. | +| | | ACLs are of for . | +| | | Defaults to special value of <<*>> which means . | +| | | Special value of just means no one has access. | *-------------------------+-------------------------+------------------------+ | <<>> | | | | | | |