Uploaded image for project: 'Apache HAWQ'
  1. Apache HAWQ
  2. HAWQ-1635

Cache Hadoop UGI for subsequent requests when PXF impersonation is on

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: backlog
    • Component/s: PXF
    • Labels:
      None

      Description

      To fix the memory leak issue as part of HAWQ-1621, we are closing the UGI reference at the end of each PXF request. However, `FileSystem.closeAllForUGI` is an expensive operation and is slowing down PXF almost by a factor of 4 (with impersonation on) compared with impersonation turned off.

      The proposal is to cache the UGI object for each PXF query session. The getFragments() call will create a new UGI and cache it using SegmentId:TransactionId. The bridge calls can get this UGI from cache. The cache entry will be cleaned-up periodically based on some timeout after inactivity.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lavjain Lav Jain
                Reporter:
                lavjain Lav Jain
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: