Build the project and upload the JAR
You compile the UDF code into a JAR and add the JAR to the classpath on the cluster. You choose one of several methods of configuring the cluster so Hive can find the JAR.
- CDP Private Cloud Base
- Use one of these methods to configure the cluster to find the JAR:
- Direct reference
Straight-forward, but recommended for development only.
- Hive aux library directory
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.
- Direct reference
- CDP Public Cloud
- Use the Direct reference method only.