Description
In the newest hadoop version 3.0.0, YarnAuthorizationProvider has changed.
The new YarnAuthorizationProvider.java has change the methods checkPermission and setPermission,
/** * Check if user has the permission to access the target object. * * @param accessRequest * the request object which contains all the access context info. * @return true if user can access the object, otherwise false. */ public abstract boolean checkPermission(AccessRequest accessRequest); /** * Set permissions for the target object. * * @param permissions * A list of permissions on the target object. * @param ugi User who sets the permissions. */ public abstract void setPermission(List<Permission> permissions, UserGroupInformation ugi);
But the RangerYarnAuthorizer extends YarnAuthorizationProvider impletement the old method.
@Override public void setPermission(PrivilegedEntity entity, Map<AccessType, AccessControlList> permission, UserGroupInformation ugi) { ... @Override public boolean checkPermission(AccessType accessType, PrivilegedEntity entity, UserGroupInformation ugi) {
I think yarn plugin should also impletement the new method. I will add a patch for it.
Attachments
Attachments
Issue Links
- is duplicated by
-
RANGER-1236 RangerYarnAuthorizer should be updated since YarnAuthorizationProvider modified in YARN-4571
- Resolved
- is related to
-
RANGER-1935 Upgrade Ranger to support Apache Hadoop 3.0.0
- Resolved
- relates to
-
RANGER-1935 Upgrade Ranger to support Apache Hadoop 3.0.0
- Resolved
- links to