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

UDFs unable to use other functions defined in same jar

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • Impala 3.2.0
    • Frontend
    • None
    • ghx-label-1

    Description

      The fix for IMPALA-7668 introduced a bug wherein a UDF calling other functions within the same jar would fail with errors like:

      WARNINGS: UDF WARNING: Hive UDF path=hdfs://localhost:20500/test-warehouse/impala-hive-udfs2.jar class=org.apache.impala.ImportsNearbyClassesUdf failed due to: ImpalaRuntimeException: UDF::evaluate() ran into a problem.
      CAUSED BY: ImpalaRuntimeException: UDF failed to evaluate
      CAUSED BY: InvocationTargetException: null
      CAUSED BY: NoClassDefFoundError: org/apache/impala/UtilForUdf
      CAUSED BY: ClassNotFoundException: org.apache.impala.UtilForUdf
      

      I believe this is caused by over-eagerly closing the associated class loader, which was introduced recently in IMPALA-7668.

      Attachments

        Issue Links

          Activity

            People

              philip Philip Martin
              philip Philip Martin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: