Join us on July 16th as we explore real-world Reinforcement Learning Learn more

How to use UDF in hive recipe ?

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
Dataiker
Dataiker
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
Level 1
Author
Hi !
Thanks it worked 🙂
The JAR is on the local filesystem for me 🙂
0 Kudos
Labels (2)