How to use UDF in hive recipe ?

kevin_khataei
Level 1
How to use UDF in hive recipe ?
Hi,

I'm trying to use a UDF in a hive recipe, I've seen the additional configuration line where I can add a key and a value

Can I put there : add (as key?) and /thepathtomyudf.jar (as value?) ?

Or is it not possible in Hive recipes ?

Best Regards,

--
Kevin KHATAEI

Data Analyst / Big Data Consultant | CGI
0 Kudos
2 Replies
Clรฉment_Stenac
Hi,

You can write your "ADD JAR" and "CREATE TEMPORARY FUNCTION" statements directly in the body of the Hive recipe.

Note that Hive tends to be a bit impredictible as to the location of the JAR: sometimes the path that you give must be on the local filesystem, sometimes on HDFS.
0 Kudos
kevin_khataei
Level 1
Author
Hi !
Thanks it worked ๐Ÿ™‚
The JAR is on the local filesystem for me ๐Ÿ™‚
0 Kudos

Labels

?
Labels (2)
A banner prompting to get Dataiku