Failed with exception java.io.IOException:java.io.IOException: Malformed ORC file
且
Caused by: java.io.IOException: Malformed ORC file hdfs://master.hadoop:8020/user/hive/warehouse/shopcn_prod Invalid postscript.
这是由于文件格式的问题,hive orc格式的数据不能直接将txt的文件导进来,创建中间表test.orc
load data local inpath '/opt/data/shop_product.txt' into table test.orc;
然后将中间表里的数据导进shopcn_prod里
insert into table shopcn_prod select * from test.orc;