ERROR : Failed with exception Wrong file format. Please check the file‘s format.
原因:表存储格式与同步的数据格式不一致导致,有可能表是orc格式,文件是文本格式
解决方法:修改hive表的存储格式为textfile,代码如下
create table temp_a(a varchar(255), b varchar(225),c varchar(225), d varchar(225)
)stored as textfile
hive的存储格式说明可参考下面博客:
https://blog.csdn.net/TC_HaoShuai/article/details/84303140