1. 报错

FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask. ORC split generation failed with exception: org.apache.orc.FileFormatException: Malformed ORC file file:/opt/module/datas/video/1.txt. Invalid postscript.

2. 解决方法

要导入的表是以orc格式存储的,如果导入的不是orc格式的数据,如:txt等,就会报如上错误。

因此,可以先将txt导入到普通表中,再使用load命令从普通表到数据到事务表中。

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐