Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-1738

RangerYarnAuthorizer not compatible with Hadoop-3.0.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.7.1
    • 2.0.0
    • plugins
    • None

    Description

      In the newest hadoop version 3.0.0, YarnAuthorizationProvider has changed.
      The new YarnAuthorizationProvider.java has change the methods checkPermission and setPermission,

      YarnAuthorizationProvider.java
        /**
         * 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.

      RangerYarnAuthorizer.java
      	@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

        Issue Links

          Activity

            People

              coheigea Colm O hEigeartaigh
              shenhong shenh062326
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: