hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Buntu Dev <buntu...@gmail.com>
Subject Re: Create function using custom UDF
Date Fri, 24 Apr 2015 04:19:58 GMT
Thanks again for the info!

On Thu, Apr 23, 2015 at 8:30 PM, sadhana yr <sadhanayr@gmail.com> wrote:

> For global configuration add the statements to $HIVE_HOME/bin/.hiverc.
>
> One other alternative,
>
> Add following property to your hive-site.xml
>
> <property>
> <name>hive.aux.jars.path</name>
>
> <value>file:///home/me/my.jar,file:///home/you/your.jar,file:///home/us/our.jar</value>
> </property>
>
>
>
>
> On Thu, Apr 23, 2015 at 11:13 PM, Buntu Dev <buntudev@gmail.com> wrote:
>
>> Thanks but is there a way to make it available to other users and avoid
>> 'add jar <jar>' step?
>>
>> On Thu, Apr 23, 2015 at 7:50 PM, Sadhana <sadhanayr@gmail.com> wrote:
>>
>>> Yes, functions declared will only be available in the current session.
>>> You will have to add the JAR to the class path and create the function in
>>> each session.
>>> If you use the same Jar files and functions frequently, you can add
>>> those statements to your $HOME/.hiverc file.
>>>
>>>
>>> > On Apr 23, 2015, at 10:37 PM, Buntu Dev <buntudev@gmail.com> wrote:
>>> >
>>> > Does the JAR need to be added for every session before using the
>>> custom UDF created using "CREATE FUNCTION"?
>>> >
>>> > I'm using Hive 0.13 and was able to add a custom UDF successfully and
>>> use it in a sample query. But in the subsequent Hive sessions, I do see the
>>> function but I get this error when using the function:
>>> >
>>> >   FAILED: SemanticException [Error 10011]: Line 1:7 Invalid function
>>> 'my_func'
>>> >
>>> > Thanks for the help!
>>>
>>
>>
>
>
> --
> Sadhana
> sadhanayr@gmail.com
> 408-837-2419
>

Mime
View raw message