摘要: hive查询表大小 查询表在hdfs的地址 show create table xxx 查询表大小 hdfs dfs -du -h 查询表的格式(内部表还是外部表、表的存储格式) desc formatted iocgjk_new.o_ls_kcw_t_kcw_xtcx_gjgdyjpt102593 阅读全文
posted @ 2021-11-17 13:52 star521 阅读(726) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/join_null/article/details/108264010?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default- 阅读全文
posted @ 2021-11-17 11:49 star521 阅读(73) 评论(0) 推荐(0) 编辑
摘要: -- 删除分区 alter table employee_table drop partition (stat_year_month>='2018-01'); 修复分区、删除分区、添加分区、显示分区 MSCK REPAIR TABLE table_name; https://www.cnblogs. 阅读全文
posted @ 2021-11-17 11:46 star521 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 问题 修改分区表的列(添加列)但是查询数据为null 原因 修改分区表导致分区字段元数据出问题,需要更新分区信息 解决方法1:修改元数据 https://blog.csdn.net/gxd520/article/details/92791487?utm_medium=distribute.pc_re 阅读全文
posted @ 2021-11-17 11:22 star521 阅读(168) 评论(0) 推荐(0) 编辑
摘要: hive通过with创建临时表 overwrite重新分区表 阅读全文
posted @ 2021-11-17 11:20 star521 阅读(186) 评论(0) 推荐(0) 编辑
摘要: hive-load上传数据到hive表 hive表数据导出到本地为csv hive -e "set hive.cli.print.header=true; #将表头输出 select * from data_table where some_query_conditions" | sed 's/[\ 阅读全文
posted @ 2021-11-17 11:18 star521 阅读(473) 评论(0) 推荐(0) 编辑