Hive 调优-存储篇
环境:
Hadoop 3.1.3
Hive:hive-3.1.2
环境准备:
1 hive> set hive.merge.mapfiles=true; 2 hive> set hive.merge.orcfile.stripe.level=true; 3 hive> set hive.merge.size.per.task=268435456; 4 hive> set hive.merge.smallfiles.avgsize=16777216; 5 hive> create table student_tb_orc like student stored as orc;
hive> insert into student_tb_orc
> select * from student;