纯粹是为了记笔记,以防后面遇到类似问题,又要找一遍问题
1、问题:在hue创建hive UDAF函数报错,Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.FunctionTask。
创建语句:CREATE FUNCTION call_tree_pattern AS 'com.ggj.gateway.elastic.udf.CallTreeUDAF';
但是在hive客户端执行是没有问题的
2、解决方案:执行add jar解决了问题。
add jar /opt/apps/ecm/service/hive/3.1.1-1.1.5/package/apache-hive-3.1.1-1.1.5-bin/auxlib/elastic-udf-1.0-SNAPSHOT-jar-with-dependencies.jar