- 博客(2)
- 收藏
- 关注
原创 基于collect_set()和collect_list()的用户路径提取
先从app表提取出用户的uid,触达页面的时间time,触达页面tab 然后使用使用collect_set()将所有页面组合起来,并通过逗号连接 collect_list()同理 select uid,concat_ws(’,’, collect_set(tab)) from (select uid,time,tab from app group by uid,time,tab order b...
2019-08-09 17:57:02
3067
原创 使用xshell将excel导入hive
1、将excel另存为test.txt 2、打开test.txt文件,另存为,将Unicode编码格式改成UTF-8,覆盖原文件 3、打开xshell,登录集群,输入rz回车,选择test.txt 上传成功 4、load data local inpath ‘/home/hadoop/test.txt’ overwrite into table score; 即可把数据导入到事先建好的score...
2019-08-09 17:36:31
990
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人