Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-8598 Impala/Atlas integration
  3. IMPALA-8473

Refactor lineage publication mechanism to allow for different consumers

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • Impala 3.3.0
    • Backend, Frontend
    • None
    • ghx-label-5

    Description

      Impetus for this change is to allow lineage to be consumed by Atlas via Kafka.

      Design Proposal

      Implement a plugin approach (similar to authorization_provider) for consuming query event hooks, where downstream users can provide their own hook implementations as runtime dependencies.

      Keep but deprecate existing lineage event file writing.

      madhan@apache.org has provided a fe patch (attached) with suggested mechanism for allowing multiple hooks to be registered with the fe.  Hooks would be invoked from the be at appropriate places, e.g. https://github.com/apache/impala/blob/c1b0a073938c144e9bf33901bd4df6dcda0f09ec/be/src/service/impala-server.cc#L466.  The hooks should all be executed asynchronously, so the current thinking is that this execution should happen in the fe, since the be does not know about what hooks are registered.  IOW, the ImpalaPostExecHookFactory.executeHooks method (see patch) should probably make use of a thread-pool executor service (or something similar) in order to execute all hooks in parallel and in a non-blocking manner, returning to the be asap.

       

      Code Review

      https://gerrit.cloudera.org/#/c/13352/

      Attachments

        1. ImpalaPostExecHook-infra.patch
          7 kB
          radford nguyen

        Issue Links

          Activity

            People

              radford-nguyen radford nguyen
              radford-nguyen radford nguyen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: