在hue创建hive UDAF函数报错,Error while processing statement: FAILED: Execution Error, return code 1 from

纯粹是为了记笔记,以防后面遇到类似问题,又要找一遍问题

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
 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章