hive premanent udf 发布...

起因: 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 时操作)
posted @ 2016-04-27 10:08  梅里之巅  阅读(377)  评论(0编辑  收藏  举报