This project is for creating a repository of Hive User Defined Functions (UDFs) which can be included as modules in other projects.
This project is developed and tested under the following environment:
- Java Development Kit (JDK) 8
- Apache Hive 3.1.3
The repository includes the following UDFs:
- ifnull
- countif
- strpos
- Build UDF from gradle
- Upload UDF jar file on your HDFS
- Execute the query below.
ADD JAR hdfs:/your-udf-path/your-udf.jar;
CREATE TEMPORARY FUNCTION your_udf AS 'your.package.YourUDFClassName';