Class CapacityQueueACLsManager
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.security.QueueACLsManager
org.apache.hadoop.yarn.server.resourcemanager.security.CapacityQueueACLsManager
This is the implementation of
QueueACLsManager based on the
CapacityScheduler.-
Constructor Summary
ConstructorsConstructorDescriptionCapacityQueueACLsManager(ResourceScheduler scheduler, org.apache.hadoop.conf.Configuration conf) -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckAccess(org.apache.hadoop.security.UserGroupInformation callerUGI, org.apache.hadoop.yarn.api.records.QueueACL acl, RMApp app, String remoteAddress, List<String> forwardedAddresses) booleancheckAccess(org.apache.hadoop.security.UserGroupInformation callerUGI, org.apache.hadoop.yarn.api.records.QueueACL acl, RMApp app, String remoteAddress, List<String> forwardedAddresses, String targetQueue) Check access to a targetQueue in the case of a move of an application.Methods inherited from class org.apache.hadoop.yarn.server.resourcemanager.security.QueueACLsManager
getQueueACLsManager
-
Constructor Details
-
CapacityQueueACLsManager
public CapacityQueueACLsManager(ResourceScheduler scheduler, org.apache.hadoop.conf.Configuration conf)
-
-
Method Details
-
checkAccess
public boolean checkAccess(org.apache.hadoop.security.UserGroupInformation callerUGI, org.apache.hadoop.yarn.api.records.QueueACL acl, RMApp app, String remoteAddress, List<String> forwardedAddresses) - Specified by:
checkAccessin classQueueACLsManager
-
checkAccess
public boolean checkAccess(org.apache.hadoop.security.UserGroupInformation callerUGI, org.apache.hadoop.yarn.api.records.QueueACL acl, RMApp app, String remoteAddress, List<String> forwardedAddresses, String targetQueue) Description copied from class:QueueACLsManagerCheck access to a targetQueue in the case of a move of an application. The application cannot contain the destination queue since it has not been moved yet, thus need to pass it in separately.- Specified by:
checkAccessin classQueueACLsManager- Parameters:
callerUGI- the caller UGIacl- the acl for the Queue to checkapp- the application to moveremoteAddress- server ip addressforwardedAddresses- forwarded adressestargetQueue- the name of the queue to move the application to- Returns:
- true: if submission is allowed and queue exists, false: in all other cases (also non existing target queue)
-