hive orc文件读取,hiveorc读取
支持增删改查建表:
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
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。