天天看點

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 )

 謝謝您的贊助,我會做的更好!