While creating an UDF for HIVE, I am getting below error:
org.apache.ambari.view.hive.client.HiveErrorStatusException:
H110 Unable to submit statement. Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.FunctionTask [ERROR_STATUS]
I am working on hortonworks platform. I tried to create a simple UDF to simulate the issue, is this a config issue?
UDF
package HiveUDF.HIVEUDF;
import org.apache.hadoop.hive.ql.exec.UDF;
import org.apache.hadoop.io.Text;
public final class HIVEUDFUPPER extends UDF
{
public Text evaluate(final Text s) {
if (s == null) { return null; }
return new Text(s.toString().toUpperCase());
}
}
add jar hdfs:///tmp/HIVEUDF.jar;
create temporary function HIVEUDFUPPER as 'HIVEUDFUPPER';