如何在hive中执行更新?

w8rqjzmb  于 2021-06-26  发布在  Hive
关注(0)|答案(1)|浏览(400)

我正在使用hortonworks的ibm沙盒在hive中执行更新。我已经创建了酸属性表和扣也。后来我做到了 set hive.txn.manager . 然后我得到以下信息:

FAILED: Semantic Exception [Error 10294]: Attempt to do update or delete using transaction manager that does not support these operations,while doing update.

请建议更新配置单元中的行的方法。

mlmc2os5

mlmc2os51#

设置 set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager at-cli并不总是有效的。在hive-site.xml中设置此选项,然后重新启动
set hive.compactor.initiator.on=true; set hive.compactor.worker.threads=1; 这些特性是酸所必需的。
还要确保表的属性设置为 transactional

相关问题