hive命令

hive>show functions;查看Hive的内置函数

hive>create temporary function say_hello as 'cn.zhangyu.HelloUdf';创建临时函数

hive>add jar /home/hadoop/udaf_avg.jar  

hive>create temporary function udaf_avg 'hive.udaf.Avg'  

hive>drop temporary function udaf_avg

hive>desc table;

hive>desc table;

[ ]hiveserver2

[ ]beeline -u jdbc:hive2://localhost:10000

posted @ 2019-01-08 14:40  uuhh  阅读(170)  评论(0编辑  收藏  举报