How to use UDF in hive recipe ?

Tags
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

Answers

  • Dataiker, Dataiku DSS Core Designer, Registered, Moderator Posts: 753 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.
  • Registered Posts: 2 ✭✭✭✭
    Hi !
    Thanks it worked :)
    The JAR is on the local filesystem for me :)

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.