Package org.apache.hadoop.yarn.security
Class AdminACLsManager
java.lang.Object
org.apache.hadoop.yarn.security.AdminACLsManager
-
Constructor Summary
ConstructorsConstructorDescriptionAdminACLsManager(org.apache.hadoop.conf.Configuration conf) Constructs and initializes this AdminACLsManager -
Method Summary
-
Constructor Details
-
AdminACLsManager
public AdminACLsManager(org.apache.hadoop.conf.Configuration conf) Constructs and initializes this AdminACLsManager- Parameters:
conf- configuration for this object to use
-
-
Method Details
-
getOwner
public org.apache.hadoop.security.UserGroupInformation getOwner()Returns the owner- Returns:
- Current user at the time of object creation
-
areACLsEnabled
public boolean areACLsEnabled()Returns whether ACLs are enabled- Returns:
trueif ACLs are enabled- See Also:
-
YarnConfiguration.YARN_ACL_ENABLEYarnConfiguration.DEFAULT_YARN_ACL_ENABLE
-
isAdmin
public boolean isAdmin(org.apache.hadoop.security.UserGroupInformation callerUGI) Returns whether the specified user/group is an administrator- Parameters:
callerUGI- user/group to to check- Returns:
trueif the UserGroupInformation specified is a member of the access control list for administrators
-