How to use UDF in hive recipe ?
kevin_khataei
Registered Posts: 2 ✭✭✭✭
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
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
Answers
-
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. -
Hi !
Thanks it worked
The JAR is on the local filesystem for me