admin管理员组文章数量:1635968
Hive导入数据报错
Hive load data local inpath … into table … 出错
报错信息:org.apache.hadoop.hive.ql.parse.SemanticException:Unable to load data to destination table. Error: The file that you are trying to load does not match the file format of the destination table.
原表建表语句
create table lhn(
id int,
name string
)row format delimited fields terminated by '\t';
错误原因
Hive 3.x系列不支持load data 命令向内部表导入数据
解决办法
1.创建外部表
2.创建临时表再用 select 方式导入
本文标签: MATCHloadfiletabledestination
版权声明:本文标题:The file that you are trying to load does not match the file format of the destination table. 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/xitong/1729215833a1190422.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论