主题:hive插入数据
因为数据消费异常,需要在hive桶表中插入历史分区数据,一开始的SQL:
insert overwrite table 桶表 partition(partition='2020-10-30')
select * from 分区表 t where t.partition='2020-10-30'
报错:
org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: SemanticException [Error 10295]: INSERT OVERWRITE not allowed on table with OutputFormat that implements AcidOutputFormat while transaction manager that supports ACID is in use
at org.apache.hive.jdbc.Utils.verifySuccess(Utils.java:266)
at org.apache.hive.jdb

本文探讨了在Hive桶表中插入历史分区数据时遇到的问题及解决方案。最初使用`insert overwrite`语句尝试插入数据失败,但通过改用`insert into`语句成功完成了数据插入,这可能与Hive桶表的事务支持有关。
最低0.47元/天 解锁文章
1万+

被折叠的 条评论
为什么被折叠?



