摘要:
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF 重点学习的是字符串的操作,所以建立一个空表就可以了, create table dual(id string); load 一个文件dual.dat 只有一个空格 阅读全文
posted @ 2017-06-01 18:25
牵牛花
阅读(304)
评论(0)
推荐(0)
摘要:
建表 full outer join ,两边的数据都会出来只不过on条件没有对应上的一端会显示为null select a.*from a left semi join b on a.id = b.id; -- from 前不能写b.* 否则会报错( Error while compiling st 阅读全文
posted @ 2017-06-01 16:45
牵牛花
阅读(706)
评论(0)
推荐(0)
摘要:
创建分桶的表 create table t_buck(id int ,name string) clustered by (id ) sorted by (id) into 4 buckets ; 分桶表的数据不是直接导入(load)的,是从其他表里面查出来插入的 ,插入时会在语句中加入约束的语句。 阅读全文
posted @ 2017-06-01 16:03
牵牛花
阅读(1701)
评论(0)
推荐(0)
摘要:
连接 登录 !connect jdbc:hive2://localhost:10000Connecting to jdbc:hive2://localhost:10000Enter username for jdbc:hive2://localhost:10000: hadoopEnter pass 阅读全文
posted @ 2017-06-01 10:45
牵牛花
阅读(304)
评论(0)
推荐(0)

浙公网安备 33010602011771号