HADOOP-10539. Provide backward compatibility for ProxyUsers.authorize() call. Contributed by Benoy Antony.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1589884 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c02ea74551
commit
4f60187714
@ -410,6 +410,9 @@ Release 2.5.0 - UNRELEASED
|
|||||||
HADOOP-10531. hadoop-config.sh - bug in --hosts argument.
|
HADOOP-10531. hadoop-config.sh - bug in --hosts argument.
|
||||||
(Sebastien Barrier via wang)
|
(Sebastien Barrier via wang)
|
||||||
|
|
||||||
|
HADOOP-10539. Provide backward compatibility for ProxyUsers.authorize()
|
||||||
|
call. (Benoy Antony via cnauroth)
|
||||||
|
|
||||||
Release 2.4.1 - UNRELEASED
|
Release 2.4.1 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
|
|
||||||
import com.google.common.annotations.VisibleForTesting;
|
import com.google.common.annotations.VisibleForTesting;
|
||||||
|
|
||||||
@InterfaceAudience.Private
|
@InterfaceAudience.LimitedPrivate({"HDFS", "MapReduce", "HBase", "Hive"})
|
||||||
public class ProxyUsers {
|
public class ProxyUsers {
|
||||||
|
|
||||||
private static final String CONF_HOSTS = ".hosts";
|
private static final String CONF_HOSTS = ".hosts";
|
||||||
@ -194,6 +194,20 @@ public static synchronized void authorize(UserGroupInformation user,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This function is kept to provide backward compatibility.
|
||||||
|
* @param user
|
||||||
|
* @param remoteAddress
|
||||||
|
* @param conf
|
||||||
|
* @throws AuthorizationException
|
||||||
|
* @deprecated use {@link #authorize(UserGroupInformation, String) instead.
|
||||||
|
*/
|
||||||
|
@Deprecated
|
||||||
|
public static synchronized void authorize(UserGroupInformation user,
|
||||||
|
String remoteAddress, Configuration conf) throws AuthorizationException {
|
||||||
|
authorize(user,remoteAddress);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return true if the configuration specifies the special configuration value
|
* Return true if the configuration specifies the special configuration value
|
||||||
* "*", indicating that any group or host list is allowed to use this configuration.
|
* "*", indicating that any group or host list is allowed to use this configuration.
|
||||||
|
Loading…
Reference in New Issue
Block a user