欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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

程序员文章站 2022-04-29 08:17:25
...

 

 

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 )
 
 谢谢您的赞助,我会做的更好!

 

 

 

 

 

 

转载于:https://my.oschina.net/u/3269611/blog/1619433