在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
 

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