Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-9651

Update Ranger Impala plugin to replace use of deprecated APIs

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    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());
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            fangyurao Fang-Yu Rao
            fangyurao Fang-Yu Rao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment