【发布时间】:2015-11-25 23:35:27
【问题描述】:
我正在尝试更新 hive 兽人存储桶表。但它抛出异常失败:语义异常 [错误 10294]:尝试使用不支持这些操作的事务管理器进行更新或删除。“ 我在 hive 命令提示符下运行。
第 1 步:
set hive.support.concurrency = true;
SET hive.enforce.bucketing = true;
SET hive.exec.dynamic.partition.mode = nonstrict;
SET hive.txn.manager = org.apache.hadoop.hive.ql.lockmgr.DbTxnManager;
SET hive.compactor.initiator.on = true;
SET hive.compactor.worker.threads = 1;
第 2 步:
创建表 test(id int ,name string ) 由 (id) 聚类到存储为 orc TBLPROPERTIES('transactional'='true') 的 2 个桶中;
第 3 步: 插入表测试值 (1,'row1'),(2,'row2'),(3,'row3'); -- 3行插入成功 第 4 步:
插入表testTable值(1,'row1'),(2,'row2');
失败:SemanticException [错误 10294]:尝试使用不支持这些操作的事务管理器进行更新或删除。“
之后,当我打开另一个 hive 提示并运行 show tables 时,它仍然处于挂起状态,没有返回结果。我也重新启动了配置单元服务,但没有用。
【问题讨论】:
标签: hive azure-hdinsight