You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Fang-Yu Rao (Jira)" <ji...@apache.org> on 2020/04/13 22:51:00 UTC

[jira] [Created] (IMPALA-9651) Update Ranger Impala plugin to replace use of deprecated APIs

Fang-Yu Rao created IMPALA-9651:
-----------------------------------

             Summary: 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


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: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org