HADOOP-6538. Sets hadoop.security.authentication to simple by default. Contributed by Devaraj Das.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@906388 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9f7a07f908
commit
f786508cd3
@ -169,6 +169,9 @@ Trunk (unreleased changes)
|
|||||||
HADOOP-6517. Fix UserGroupInformation so that tokens are saved/retrieved
|
HADOOP-6517. Fix UserGroupInformation so that tokens are saved/retrieved
|
||||||
to/from the embedded Subject (Owen O'Malley & Kan Zhang via ddas)
|
to/from the embedded Subject (Owen O'Malley & Kan Zhang via ddas)
|
||||||
|
|
||||||
|
HADOOP-6538. Sets hadoop.security.authentication to simple by default.
|
||||||
|
(ddas)
|
||||||
|
|
||||||
Release 0.21.0 - Unreleased
|
Release 0.21.0 - Unreleased
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -59,6 +59,13 @@
|
|||||||
<description>Is service-level authorization enabled?</description>
|
<description>Is service-level authorization enabled?</description>
|
||||||
</property>
|
</property>
|
||||||
|
|
||||||
|
<property>
|
||||||
|
<name>hadoop.security.authentication</name>
|
||||||
|
<value>simple</value>
|
||||||
|
<description>Possible values are simple (no authentication), and kerberos
|
||||||
|
</description>
|
||||||
|
</property>
|
||||||
|
|
||||||
<!--- logging properties -->
|
<!--- logging properties -->
|
||||||
|
|
||||||
<property>
|
<property>
|
||||||
|
@ -151,9 +151,9 @@ private static synchronized void ensureInitialized() {
|
|||||||
*/
|
*/
|
||||||
private static synchronized void initialize(Configuration conf) {
|
private static synchronized void initialize(Configuration conf) {
|
||||||
String value = conf.get(HADOOP_SECURITY_AUTHENTICATION);
|
String value = conf.get(HADOOP_SECURITY_AUTHENTICATION);
|
||||||
if ("simple".equals(value)) {
|
if (value == null || "simple".equals(value)) {
|
||||||
useKerberos = false;
|
useKerberos = false;
|
||||||
} else if (value == null || "kerberos".equals(value)) {
|
} else if ("kerberos".equals(value)) {
|
||||||
useKerberos = true;
|
useKerberos = true;
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException("Invalid attribute value for " +
|
throw new IllegalArgumentException("Invalid attribute value for " +
|
||||||
|
Loading…
Reference in New Issue
Block a user