Hive Custom UDF


#1

Can we create custom udf in Java and add that jar and use in Hive ?


#2

@abhishek22

Yes you can create your custom user defined function in Java and add to the Hive.
But you need to add all the dependencies and set the serde for it.
After that you need to do the following steps.
ADD JAR hdfs:///data/hive/json-serde-1.1.9.9-Hive13-jar-with-dependencies.jar;
SET hive.support.sql11.reserved.keywords=false;

All the best!