Build the project and upload the JAR
You compile the UDF code into a JAR and place the JAR on the cluster. You choose one of several methods of configuring the cluster so Hive can find the JAR.
- Direct reference
Straight-forward, but recommended for development only.
- Hive aux library directory method
Prevents accidental overwriting of files or functions. Recommended for tested, stable UDFs to prevent accidental overwriting of files or functions.
- Reloadable aux JAR Avoids HiveServer restarts.
Recommended if you anticipate making frequent changes to the UDF logic.