hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Dere (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-6672) JARs loaded by permanent functions don't work properly with HiveServer2
Date Thu, 20 Mar 2014 00:09:43 GMT

     [ https://issues.apache.org/jira/browse/HIVE-6672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jason Dere updated HIVE-6672:
-----------------------------

    Attachment: HIVE-6672.1.patch

Patch v1 which addresses this issue.  When lookup up the FunctionInfo for a permanent UDF
from the FunctionRegistry, check if the classloader can resolve the UDF class, and if that
fails then load the JARs necessary for that permanent UDF.

> JARs loaded by permanent functions don't work properly with HiveServer2
> -----------------------------------------------------------------------
>
>                 Key: HIVE-6672
>                 URL: https://issues.apache.org/jira/browse/HIVE-6672
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2, UDF
>            Reporter: Jason Dere
>         Attachments: HIVE-6672.1.patch
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message