Nemon Lou created HIVE-9095:
-------------------------------

             Summary: permanent functions' ClassLoader should be global instead 
of per-session
                 Key: HIVE-9095
                 URL: https://issues.apache.org/jira/browse/HIVE-9095
             Project: Hive
          Issue Type: Improvement
          Components: HiveServer2, UDF
    Affects Versions: 0.13.1, 0.14.0
            Reporter: Nemon Lou


FunctionRegistry.mFunctions is static. That means that in HS2 case, all users 
will share the same UDF class object from  mFunctions ,which lead to share the 
same classloader that load this class. 

First,this will make the per-session classloader useless.Because only the first 
classLoader will be used to initailize the instances of the permanent UDF class.
Second, it's will cause class not found exception,when the classLoader created 
by the first session be closed before load all the classes that need.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to