Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
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.
Attachments
Attachments
Issue Links
- is related to
-
HIVE-10453 HS2 leaking open file descriptors when using UDFs
- Closed
- relates to
-
HIVE-9095 permanent functions' ClassLoader should be global instead of per-session
- Open
- links to