[ 
https://issues.apache.org/jira/browse/HADOOP-4070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630343#action_12630343
 ] 

Prasad Chakka commented on HADOOP-4070:
---------------------------------------

Hi Tom,

The reason for that code was that user could specify the list of auxiliary jars 
in hive-default.xml (and also by setting the hive.aux.jars.path in hive command 
line client as a session variable). In which case GenericOptionsParser code 
doesn't work. I think appending 'file://' is new to 19.  

Can you persist this mapping in metastore? otherwise create needs to be 
specified everytime hive session is brought up. And also management functions 
such as drop, rename and some such needs to be provided.

Another alternative (as an initial implementation which is simple but 
sufficient for now) is to use reflection to load the function class. The 
function name and class name can be same and the package could be predefined 
(org.apache.hadoop.hive.udf) or configured and at runtime this class would be 
loaded.

> [Hive] Provide a mechanism for registering UDFs from the query language
> -----------------------------------------------------------------------
>
>                 Key: HADOOP-4070
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4070
>             Project: Hadoop Core
>          Issue Type: New Feature
>          Components: contrib/hive
>            Reporter: Tom White
>         Attachments: hadoop-4070.patch
>
>
> UDFs (user defined functions) in Hive are currently actually built-in 
> functions. This issue is to develop a packaging and registration mechanism so 
> users can add their own functions at runtime.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to