/hive-udf

Example of a User Defined Function (UDF) for Apache Hive

Primary LanguageJava

hive-udf

Example of a User Defined Function (UDF) for Apache Hive

Blog URL

Build and use a Hive UDF in 1 minute

How to

  • Just use the precompiled myudfs.jar

  • Or compile it with:

javac -cp $(ls /usr/lib/hive/lib/hive-exec*.jar):/usr/lib/hadoop/hadoop-common.jar org/hue/udf/MyUpper.java
jar -cf myudfs.jar  -C . .