摘要: 行转列(把多个行合并) 比如把: id tag 1 12 1 23 2 67 2 78 2 76 行转列之后: id tag 1 12,23 2 67,78,76 使用函数为:concat_ws(',',collect_set(column)) // 中间用 ',' 号隔开 说明:collect_l 阅读全文
posted @ 2018-10-13 20:22 董秀才 阅读(1451) 评论(0) 推荐(0) 编辑
摘要: 要想使用Hive先要有hadoop集群的支持,使用本地把元数据存储在mysql中。 mysql要可以远程连接: 可以设置user表,把localhost改为%,所有可连接。记住删除root其他用户,不然可能会有影响 update user set host='%' where host='local 阅读全文
posted @ 2018-10-13 15:59 董秀才 阅读(1528) 评论(0) 推荐(0) 编辑