10 2016 档案
linux 查找目录或文件
摘要:查找目录:find /(查找范围) -name '查找关键字' -type d查找文件:find /(查找范围) -name 查找关键字 ·find path -option [ -print ] [ -exec -ok command ] {} /;#-print 将查找到的文件输出到标准输出#- 阅读全文
posted @ 2016-10-19 14:13 凌度 阅读(23979) 评论(0) 推荐(0)
hive和ORACLE语法对比
摘要: 阅读全文
posted @ 2016-10-13 15:27 凌度 阅读(2983) 评论(0) 推荐(0)
[oracle] update和merge语句的几点写法
摘要:1.update t2 set parentid=(select ownerid from t1 where t1.id=t2.id); 2. update tb_client_win_lost_report a set a.rolling_code_id=2 where game_code_id= 阅读全文
posted @ 2016-10-12 17:41 凌度 阅读(4507) 评论(0) 推荐(0)
[Linux]删除7天前的目录
摘要:find /ftp_data/ -mindepth 2 -type d -mtime +7 -exec rm -rf {} \; 阅读全文
posted @ 2016-10-11 10:12 凌度 阅读(6678) 评论(0) 推荐(0)
hive 全局排序
摘要:不分发数据,使用单个reducer 包多一层,是用order by 把所有具有相同的行最终都在一个reducer分区中,在在一个reducer中排序。 cluster by column=distribute by column+sort by colum 查询每天前十名充值用户和充值总额 阅读全文
posted @ 2016-10-09 11:12 凌度 阅读(3229) 评论(0) 推荐(0)