会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
chenzechao
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
27
28
29
30
31
32
33
34
35
···
39
下一页
2018年7月30日
oracle 表权限配置
该文被密码保护。
阅读全文
posted @ 2018-07-30 16:04 chenzechao
阅读(1)
评论(0)
推荐(0)
2018年7月25日
shell命令
摘要: ### 切换到脚本所在目录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
阅读(141)
评论(0)
推荐(0)
HIVE sql取中文
摘要: select regexp_replace(str,'[^\\u4e00-\\u9fa5]','') as str1 from ( select 'test测试test' as str ) t ;
阅读全文
posted @ 2018-07-25 16:00 chenzechao
阅读(952)
评论(0)
推荐(0)
并行执行hive脚本
摘要: 1 ### 模板脚本存放路径(无需修改) 2 cd /tmp/fix_data/tmp_wjj_20180322_01 3 ### 脚本名称 4 script=tmp_wjj_20180322_01 5 ### 开始日期(包括当月/天) 6 etl_dt_start='2017-09-01' 7 ### 结束日期(不包括当月/天) 8 etl_dt_end='2016-12-...
阅读全文
posted @ 2018-07-25 15:58 chenzechao
阅读(369)
评论(0)
推荐(0)
hive数据导入导出
摘要: 1 -- 从本地文件加载数据: 2 LOAD DATA LOCAL INPATH '/home/hadoop/input/ncdc/micro-tab/sample.txt' OVERWRITE INTO TABLE records; 3 load data local inpath '/home/hive/partitions/files' into table logs partitio...
阅读全文
posted @ 2018-07-25 15:50 chenzechao
阅读(969)
评论(0)
推荐(0)
hive distcp数据同步
摘要: 1 -- 同步HDFS数据(shell执行) 2 hadoop distcp \ 3 -Dmapred.job.queue.name=queue_name \ 4 -update \ 5 -skipcrccheck hdfs://hdfs01/user/hive/warehouse/db_name1.db/table_name \ 6 /user/hive/warehouse/db_name...
阅读全文
posted @ 2018-07-25 14:34 chenzechao
阅读(681)
评论(0)
推荐(0)
hive参数设置
摘要: 1 -- 设置hive的计算引擎为spark 2 set hive.execution.engine=spark; 3 4 -- 修复分区 5 set hive.msck.path.validation=ignore; 6 msck repair table sub_ladm_app_click_day_cnt; 7 8 -- 打印表头 9 set hive.cli.p...
阅读全文
posted @ 2018-07-25 14:31 chenzechao
阅读(5958)
评论(0)
推荐(0)
2018年7月24日
hive export import
摘要: 1 create database target_db; 2 drop table target_db.kylin_account; 3 dfs -rm -r /tmp/kylin_account; 4 export table default.kylin_account to '/tmp/kylin_account'; 5 import table target_db.kylin_ac...
阅读全文
posted @ 2018-07-24 17:53 chenzechao
阅读(167)
评论(0)
推荐(0)
2018年7月19日
HIVE 计算指定日期本周的第一天和最后一天
摘要: 1 -- 计算指定日期本周的第一天和最后一天 2 select 3 day 4 ,dayofweek(day) as dw1 5 ,date_add(day,1 - dayofweek(day)) ...
阅读全文
posted @ 2018-07-19 16:48 chenzechao
阅读(16003)
评论(0)
推荐(0)
2018年7月16日
hive支持事务及单行操作 update delete
摘要: 测试环境 Hive 1.2.1000.2.6.0.3-8
阅读全文
posted @ 2018-07-16 16:32 chenzechao
阅读(563)
评论(0)
推荐(0)
上一页
1
···
27
28
29
30
31
32
33
34
35
···
39
下一页
公告