Using Apache Hive
Also available as:
PDF

Creating a user-defined function

You export user-defined functionality (UDF) to a JAR from a Hadoop- and Hive-compatible Java project and store the JAR on your cluster. Using Hive commands, you register the UDF based on the JAR, and call the UDF from a Hive query.

  • You have access to HDFS on the cluster.
  • HiveServer or HiveServer Interactive, or both, are running on the cluster.
  • You have installed the JDK 1.8 and a Java integrated development environment (IDE) tool on the machine where you will create the UDF.