上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 39 下一页
摘要: select regexp_replace(reflect("java.util.UUID", "randomUUID"), "-", "") as uuid ,rand() -- rand_num ,rand(100) -- rand_num_seed ; SELECT * FROM DISTRIBUTE BY RAND() SORT B... 阅读全文
posted @ 2018-08-15 08:41 chenzechao 阅读(143) 评论(0) 推荐(0)
摘要: https://www.python.org/ftp/python/3.6.6/ https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tar.xz ### 通过pip安装itchatpip install itchat ### 导入包import 阅读全文
posted @ 2018-08-13 09:26 chenzechao 阅读(370) 评论(0) 推荐(0)
摘要: -- 指定时间所在的季度的第一天 SQL实现: 2. 创建相应的日期维表可以实现 3. 通过shell可以实现 阅读全文
posted @ 2018-08-09 16:42 chenzechao 阅读(1503) 评论(0) 推荐(0)
摘要: -- 统计数据,原文件见文件中的附件 阅读全文
posted @ 2018-08-09 10:48 chenzechao 阅读(908) 评论(0) 推荐(0)
摘要: -- 切换数据库 use database_name; -- 优化本地查询 set hive.fetch.task.conversion=more; -- 设置hive的计算引擎为spark set hive.execution.engine=spark; -- 打印表头 set hive.cli.print.header=true; set hive.cli.print.row.to... 阅读全文
posted @ 2018-08-09 08:58 chenzechao 阅读(453) 评论(0) 推荐(0)
摘要: -- 列转行 select name ,str[0] as id ,str[1] as age from ( select name ,split(name_tmp,',') as str from ( select 'a,10|b,11|c,12' as name ) t1 later... 阅读全文
posted @ 2018-08-09 08:40 chenzechao 阅读(957) 评论(0) 推荐(0)
摘要: 未完待续 阅读全文
posted @ 2018-08-08 17:32 chenzechao 阅读(1828) 评论(0) 推荐(0)
摘要: hive -S -e "select * from db_name.table_name limit 0"|grep table_name|xargs -n1|sed 's/table_name.//g' 阅读全文
posted @ 2018-08-03 09:42 chenzechao 阅读(795) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2018-07-30 16:04 chenzechao 阅读(1) 评论(0) 推荐(0)
摘要: ### 切换到脚本所在目录bin=$(cd `dirname $0`;pwd) cd ${bin} ### 删除文件名乱码文件 find . -inum 16482370 -exec mv {} ppp \; ### 打印指定行数 sed -n '777172,793920p' kafkaconnect.log 阅读全文
posted @ 2018-07-25 16:02 chenzechao 阅读(136) 评论(0) 推荐(0)
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 39 下一页