
hive
bug搬运攻城狮
当你的才华还撑不起你的野心时,你就应该静下心来学习
展开
-
HIVE :UDF、UDAF、UDTF
1、UDF:用户定义(普通)函数,只对单行数值产生作用;实现方法:继承UDF类重写evaluate方法/** * @function 自定义UDF统计最小值 * @author John * */ public class Min extends UDF { public Double evaluate(Double...转载 2018-11-16 11:57:15 · 518 阅读 · 0 评论 -
hive脚本执行方式
hive脚本的执行方式hive脚本的执行方式大致有三种:hive控制台执行;hive -e "SQL"执行;hive -f SQL文件执行;参考hive用法:usage: hive -d,--define <key=value> Variable subsitution to apply to hive ...转载 2018-11-16 12:06:56 · 3949 阅读 · 1 评论 -
Hive注释中文乱码
前言今天刚安装完CDH环境,交给同事使用,反馈说hive有乱码问题建表语句create external table movie(userID int comment '用户ID',movieID int comment '电影ID',rating int comment '电影评分',timestamped bigint comment '评分时间戳',movieName str...原创 2018-12-18 13:27:34 · 454 阅读 · 0 评论 -
hive跨集群迁移数据
1.源端查看要传递的表建表语句源端hive shell执行show create table tablename2.目标端建表目标端hive shell执行根据第一步中建表语句建表即可3.distcp源端shell执行hadoop distcp -D ipc.client.fallback-to-simple-auth-allowed=true -i -skipcrccheck ...原创 2019-03-01 16:55:30 · 737 阅读 · 0 评论