在之前的博客中已经介绍过hive的四种存储格式:http://blog.csdn.net/zyzzxycj/article/details/79267635
本文以ORCFile存储格式为例,详细介绍hive上转换表的存储格式的步骤和需要注意的地方。
1、 查看需要转换的原表信息
show create table 表名;
这边的tmp_mf是用默认格式TextFile储存的。
2、复制表信息 并创建表test2:
CREATE TABLE test2(
`entity_id` string,
`self_entity_id` string,
`shop_entity_id` string,
`curr_date` string,
`card_kind_id` string,
`topup_principal` double,
`topup_gift` double,
`pay_principal` do

本文介绍了如何在Hive中将表从默认的TextFile格式转换为ORCFile格式,包括查看原表信息、复制表并创建新表、导入数据到新表以及验证转换结果的过程。
最低0.47元/天 解锁文章
2110

被折叠的 条评论
为什么被折叠?



