1. Hive
  2. HIVE-6672

JARs loaded by permanent functions don't work properly with HiveServer2


    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.13.0
    • Component/s: HiveServer2, UDF
    • Labels:


      Permanent functions which specify JAR files to load do not seem to work properly with HiveServer2. While the function can be created and see with SHOW FUNCTIONS, doing DESCRIBE FUNCTION or using the UDF in a query results in java.lang.ClassNotFoundException.

      It looks like the JAR is only added to the classloader of the very first thread which references the UDF. Subsequent threads will have a different class loader which may not have loaded the JAR, but because the UDF is already in the FunctionRegistry these threads do not attempt to load the resources for the UDF.

        Issue Links


          Yongzhi Chen made changes -
          Link This issue is related to HIVE-10453 [ HIVE-10453 ]
          Nemon Lou made changes -
          Link This issue relates to HIVE-9095 [ HIVE-9095 ]
          Ashutosh Chauhan made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Fix Version/s 0.13.0 [ 12324986 ]
          Resolution Fixed [ 1 ]
          Jason Dere made changes -
          Remote Link This issue links to " (Web Link)" [ 14631 ]
          Jason Dere made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Jason Dere made changes -
          Assignee Jason Dere [ jdere ]
          Jason Dere made changes -
          Field Original Value New Value
          Attachment HIVE-6672.1.patch [ 12635692 ]
          Jason Dere created issue -


            • Assignee:
              Jason Dere
              Jason Dere
            • Votes:
              0 Vote for this issue
              3 Start watching this issue


              • Created: