上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 39 下一页
摘要: ROWS BETWEEN含义,也叫做WINDOW子句: PRECEDING:往前 FOLLOWING:往后 CURRENT ROW:当前行 UNBOUNDED:起点 UNBOUNDED PRECEDING 表示从前面的起点 UNBOUNDED FOLLOWING:表示到后面的终点 AVG(pv) O 阅读全文
posted @ 2018-07-10 10:05 chenzechao 阅读(256) 评论(0) 推荐(0)
摘要: 1 %sql 2 select 3 t3.* 4 from ( 5 select 6 t2.* 7 ,row_number() over(partition by t2.pt order by t2.pv) as rn2 8 from ( 9 select 10 t1.co... 阅读全文
posted @ 2018-07-09 11:42 chenzechao 阅读(1240) 评论(0) 推荐(0)
摘要: hive存在两种锁,共享锁Shared (S)和互斥锁Exclusive (X) 其中只触发s锁的操作可以并发的执行,只要有一个操作对表或者分区出发了x锁,则该表或者分区不能并发的执行作业。 阅读全文
posted @ 2018-07-04 16:24 chenzechao 阅读(437) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2018-06-20 08:55 chenzechao 阅读(1088) 评论(0) 推荐(0)
摘要: http://xidea.online/index.html 阅读全文
posted @ 2018-05-23 13:22 chenzechao 阅读(89) 评论(0) 推荐(0)
摘要: 待完成 https://www.cnblogs.com/haozhengfei/p/5fc4a976a864f33587b094f36b72c7d3.html 阅读全文
posted @ 2018-05-17 16:33 chenzechao 阅读(63) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2018-05-17 16:33 chenzechao 阅读(13) 评论(0) 推荐(0)
摘要: 1 -- 十分位,这个算法不是很准确 2 select 3 family_agreement_cnt -- 字段 4 ,dt -- 分区 5 ,rn -- 排序 6 ,cnt -- 总行数 7 ,percent2 ... 阅读全文
posted @ 2018-05-15 18:05 chenzechao 阅读(744) 评论(0) 推荐(0)
摘要: ### 查看目录配额 hdfs dfs -count -q -h /user/hive/warehouse/db_name.db ### 查看整个HDFS的空间大小 hdfs dfs -df -h /user/ Filesystem Size Used Available Use% hdfs://hdfs01 10 P 8 P ... 阅读全文
posted @ 2018-05-14 10:50 chenzechao 阅读(2985) 评论(0) 推荐(0)
摘要: 1、删除主题 在server.properties中增加设置,默认未开启 delete.topic.enable=true 删除主题命令 /bin/kafka-topics --delete --topic test --zookeeper localhost:2181 2、删除主题数据 删除主题命 阅读全文
posted @ 2018-05-08 22:13 chenzechao 阅读(3427) 评论(0) 推荐(0)
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 39 下一页