純粹是爲了記筆記,以防後面遇到類似問題,又要找一遍問題
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