Details
-
Task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
-
ghx-label-1
Description
Ranger Impala plugin currently uses couple of deprecated Ranger APIs. These need to be replaced as detailed below.
1. RangerImpaladAuthorizationManager has reference to method RangerAuthContext.getResourceACLs(), which was deprecated with recent changes in RANGER-2654. This reference should be replaced with a call to RangerBasePlugin.getResourceACLs(), as shown below.
Current call:
RangerResourceACLs acls = authContext_.get().getResourceACLs(request);
Should be updated to:
RangerResourceACLs acls = plugin_.get().getResourceACLs(request);
Also, authContext_ can be removed from RangerImpaladAuthorizationManager, as this member will not be needed anymore.
2. AuthorizationTestBase has reference to method RangerRESTClient(String, String), which was deprecated with recent changes in RANGER-2646. This reference should be replaced with a call to RangerRESTClient(String, String, Configuration), as shown below:
Current call:
rangerRestClient_ = new RangerRESTClient(RANGER_ADMIN_URL, null);
Should be updated to:
rangerRestClient_ = new RangerRESTClient(RANGER_ADMIN_URL, null, rangerImpalaPlugin_.getConfig());