在为HIVE创建UDF时,我收到以下错误:
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]
我正在开发hortonworks平台。我试图创建一个简单的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';