hive premanent udf 发布...

mac2022-06-30  84

起因: hive premanent udf 发布成功,但是hue 无法加载使用(但是cli 是可用的) ,处理半天,依然不可用!后来发现重启hiveserver2 就可以了     具体步骤如下:    a. 将jar 放到hdfs上 hdfs:///tmp/hive-udf-1.0-SNAPSHOT.jar   b. CREATE FUNCTION sum_index AS 'hive.udf.SumIndex' USING JAR 'hdfs:///tmp/hive-udf-1.0-SNAPSHOT.jar';   c. 重启下hiveserver2(不必要,如果出现jdbc/hue无法使用自定义premanent function 时操作)

转载于:https://www.cnblogs.com/yako/p/5437790.html

最新回复(0)