支持增删改查建表:
create table orc_table(id int, name string) clustered by (id) into 4 buckets stored as orc
TBLPROPERTIES ('transactional'='true');
区分:
create table orc_table_asorc (id int,name string) stored as orc;
读取orc文件命令:
hive存储为orc时,orc格式正常无法打开访问,是乱码,需通过命令行的方式查看:
hive --orcfiledump /apps/hive/warehouse/hive_test.db/orc_table_asorc/000000_0