SemanticException [Error 10295]: INSERT OVERWRITE not allowed on table with OutputFormat that implem

在数据梳理的时候,通过hive创建了一个外部表,但是在插入表的时候使用了INSERT OVERWRITE TABLE Table  SELECT,于是报了SemanticException [Error 10295]: INSERT OVERWRITE not allowed on table with OutputFormat that implements AcidOutputFormat while transaction manager that supports ACID is in use (state=42000,code=10295),通过搜索发现原来是overwrite 问题,解决方法:要么重建外部表为管理表,要么用insert into + truncate 方法重写表。

具体参考:https://community.hortonworks.com/questions/38807/hive-overwrtite-table.html

你可能感兴趣的:(Hadoop,Hive)