1.报错
FAILED:ExecutionError,returncode1fromorg.apache.hadoop.hive.ql.exec.mr.MapRedTask.ORCsplitgenerationfailedwithexception:org.apache.orc.FileFormatException:MalformedORCfilefile:/opt/module/datas/video/1.txt.Invalidpostscript.
2.解决方法
要导入的表是以orc格式存储的,如果导入的不是orc格式的数据,如:txt等,就会报如上错误。
因此,可以先将txt导入到普通表中,再使用load命令从普通表到数据到事务表中。