摘要: order by :全排序 ,所有的任务分配在一个reduce上面,将会花费大量的时间,可以保证全局有序同时还需要设置下面两个参数:hive> set sethive.strict.checks.large.query=false;#大规模查询的检查为falsehiv... 阅读全文
posted @ 2018-09-03 22:11 crr121 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 创建表的时候使用的字段分隔符和加载的文本数据里面的分隔符一致,否则加载到表里面的数据为NULLps:创建表结构,使用逗号为字段分隔符。hive> create table order_info(oid int,oname string,price int,cid in... 阅读全文
posted @ 2018-09-03 21:16 crr121 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-09-03 21:01 crr121 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 参考博客:一个hive小案例:使用HIVE进行单词统计, 并把结果存入mysql问题:统计客户某个年龄有多少人客户表信息hive> desc customer_info;OKid intname ... 阅读全文
posted @ 2018-09-03 11:21 crr121 阅读(658) 评论(0) 推荐(0) 编辑