@InterfaceAudience.Private @InterfaceStability.Unstable public class ConfiguredYarnAuthorizer extends YarnAuthorizationProvider
Constructor and Description |
---|
ConfiguredYarnAuthorizer() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkPermission(AccessRequest accessRequest)
Check if user has the permission to access the target object.
|
org.apache.hadoop.security.authorize.AccessControlList |
getAdminAcls() |
void |
init(org.apache.hadoop.conf.Configuration conf)
Initialize the provider.
|
boolean |
isAdmin(org.apache.hadoop.security.UserGroupInformation ugi)
Check if the user is an admin.
|
void |
setAdmins(org.apache.hadoop.security.authorize.AccessControlList acls,
org.apache.hadoop.security.UserGroupInformation ugi)
Set a list of users/groups who have admin access
|
void |
setPermission(List<Permission> permissions,
org.apache.hadoop.security.UserGroupInformation user)
Set permissions for the target object.
|
destroy, getInstance
public void init(org.apache.hadoop.conf.Configuration conf)
YarnAuthorizationProvider
init
in class YarnAuthorizationProvider
conf
- configuration.public void setPermission(List<Permission> permissions, org.apache.hadoop.security.UserGroupInformation user)
YarnAuthorizationProvider
setPermission
in class YarnAuthorizationProvider
permissions
- A list of permissions on the target object.user
- User who sets the permissions.public boolean checkPermission(AccessRequest accessRequest)
YarnAuthorizationProvider
checkPermission
in class YarnAuthorizationProvider
accessRequest
- the request object which contains all the access context info.public void setAdmins(org.apache.hadoop.security.authorize.AccessControlList acls, org.apache.hadoop.security.UserGroupInformation ugi)
YarnAuthorizationProvider
setAdmins
in class YarnAuthorizationProvider
acls
- users/groups who have admin accessugi
- User who sets the admin acls.public boolean isAdmin(org.apache.hadoop.security.UserGroupInformation ugi)
YarnAuthorizationProvider
isAdmin
in class YarnAuthorizationProvider
ugi
- the user to be determined if it is an adminpublic org.apache.hadoop.security.authorize.AccessControlList getAdminAcls()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.