Hive面试题:请写出你在工作中自定义过的udf函数,简述定义步骤

版权声明:版权声明:本文为博主原创文章,转载请附上博文链接! https://blog.csdn.net/qq_42246689/article/details/84670036

步骤:

1.extends UDF,实现evaluate()

2.add JAR /home/hadoop/hivejar/udf.jar;

3.create temporary function tolowercase as 'com.ghgj.hive.udf.ToLowerCase';

4.使用

5.drop temporary function tolowercase;

猜你喜欢

转载自blog.csdn.net/qq_42246689/article/details/84670036