尝试做更新或使用事务管理器不支持这些操作删除

问题描述 投票:13回答:1

虽然试图更新蜂巢表中的Cloudera快速入门VM数据,我得到这个错误。

在编译语句错误:失败:SemanticException [错误10294]:尝试做更新或者使用不支持这些操作的事务管理器中删除。

我加入蜂房site.xml文件的一些变化,也重新启动蜂巢和cloudera.These是我在蜂房site.xml中所做的更改

hive.support.concurrency – true
hive.enforce.bucketing – true
hive.exec.dynamic.partition.mode – nonstrict
hive.txn.manager –org.apache.hadoop.hive.ql.lockmgr.DbTxnManager
hive.compactor.initiator.on – true
hive.compactor.worker.threads – 1
hadoop hive cloudera-quickstart-vm
1个回答
10
投票

我试着与你的hortonworks沙箱提供的配置,我能够做一个表ACID操作,我想它的工作原理也Cloudera的环境。虽然有一个有些事情提:

  • 确保蜂巢有你给它(您可以使用SET命令,验证它们在蜂房CLI)的属性
  • 那你一定要分时段的工作表,声明为ORC格式,并在它的表格属性“交易” =“真”(蜂巢支持ACID操作仅仅为ORC格式和事务表)。正确的表的一个例子是这样的: hive>create table testTableNew(id int ,name string ) clustered by (id) into 2 buckets stored as orc TBLPROPERTIES('transactional'='true');

您可以按照example

© www.soinside.com 2019 - 2024. All rights reserved.