[
https://issues.apache.org/jira/browse/IMPALA-9651?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Fang-Yu Rao resolved IMPALA-9651.
---------------------------------
Resolution: Fixed
> Update Ranger Impala plugin to replace use of deprecated APIs
> -------------------------------------------------------------
>
> Key: IMPALA-9651
> URL: https://issues.apache.org/jira/browse/IMPALA-9651
> Project: IMPALA
> Issue Type: Task
> Reporter: Fang-Yu Rao
> Assignee: Fang-Yu Rao
> Priority: Major
>
> 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:
> {noformat}
> RangerResourceACLs acls = authContext_.get().getResourceACLs(request);
> {noformat}
> Should be updated to:
> {noformat}
> RangerResourceACLs acls = plugin_.get().getResourceACLs(request);
> {noformat}
> 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:
> {noformat}
> rangerRestClient_ = new RangerRESTClient(RANGER_ADMIN_URL, null);
> {noformat}
> Should be updated to:
> {noformat}
> rangerRestClient_ = new RangerRESTClient(RANGER_ADMIN_URL, null,
> rangerImpalaPlugin_.getConfig());
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]