Here I have written one simple replace word UDF in java.
Then I have exported that .java file and created jar file.
Same created jar file added in hive using
Add jar jar file path ;
then I am trying to create temporary function in hive but getting below error
create temporary function functionname as 'javaprogrampkgname.javaprogramname.';
but for this am getting below error on terminal:
FAILED: Execution Error, return code -101 from org.apache.hadoop.hive.ql.exec.FunctionTask. ReplaceUDFpkg/ReplaceUDF : Unsupported major.minor version 52.0