hive 异常 (Attempt to do update or delete on table terminal that does not use an )

 

 

hive 异常 (Attempt to do update or delete on table terminal that does not use an )

 

hive > delete from terminal where 1=1 ; 

出现以下 

 

FAILED: SemanticException [Error 10297]: Attempt to do update or delete on table terminal that does not use an AcidOutputFormat or is not bucketed

 

 

解决方法

vim hive-site.xml

 

<property>
<name>hive.enforce.bucketing</name>
<value>true</value>
</property>
<property>
<name>hive.exec.dynamic.partition.mode</name>
<value>nonstrict</value>
</property>
<property>
<name>hive.txn.manager</name>
<value>org.apache.hadoop.hive.ql.lockmgr.DbTxnManager</value>
</property>
<property>
<name>hive.compactor.initiator.on</name>
<value>true</value>
</property>
<property>
<name>hive.compactor.worker.threads</name>
<value>1</value>
</property>
<property>
<name>hive.in.test</name>
<value>true</value>
</property> 
<property>
<name>hive.auto.convert.join.noconditionaltask.size</name>
<value>10000000</value>
</property>   

 

 

ok


hive 异常 (Attempt to do update or delete on table terminal that does not use an )
 

 

 

 

 

 

 

 

 

 

捐助开发者

在兴趣的驱动下,写一个免费的东西,有欣喜,也还有汗水,希望你喜欢我的作品,同时也能支持一下。 当然,有钱捧个钱场(右上角的爱心标志,支持支付宝和PayPal捐助),没钱捧个人场,谢谢各位。


hive 异常 (Attempt to do update or delete on table terminal that does not use an )hive 异常 (Attempt to do update or delete on table terminal that does not use an )
 
 谢谢您的赞助,我会做的更好!

 

 

 

 

 

 

上一篇:构建ASP.NET MVC4+EF5+EasyUI+Unity2.x注入的后台管理系统(11)-系统日志和异常的处理①


下一篇:Vivaldi连发两个snapshot版本:重点优化截图功能