Created on 10-30-2018 10:01 AM - edited 09-16-2022 06:51 AM
I would like to create UDF on Cloudera VM, when i try to create a temporary function i am getting following Error.
FAILED: Execution Error, return code -101 from org.apache.hadoop.hive.ql.exec.FunctionTask.
com/udf/StringSplitter : Unsupported major.minor version 52.0
Below i am attaching my sample Java Class
package com.udf; import org.apache.hadoop.hive.ql.exec.UDF; public class StringSplitter extends UDF { public String[] evaluate(String name) { String[] result = name.split("[\\''/*]"); return result; } }
i have created an executable jar and added on Cloudera. But i am unable to create Temporary Function.
hive> add jar Desktop/StringSplitter.jar; Added [Desktop/StringSplitter.jar] to class path Added resources: [Desktop/StringSplitter.jar]
hive> create temporary function strsplit as 'com.udf.StringSplitter'; FAILED: Execution Error, return code -101 from org.apache.hadoop.hive.ql.exec.FunctionTask. com/udf/StringSplitter : Unsupported major.minor version 52.0
Created 10-31-2018 06:06 PM
Created 10-31-2018 06:06 PM