【问题标题】:Hive Update 0.14 version is not working Attempt to do update or delete using transaction manager that does not support these operations.“Hive Update 0.14 版本不工作尝试使用不支持这些操作的事务管理器进行更新或删除。“
【发布时间】: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


    【解决方案1】:

    根据 Hive wiki,Bucketing 和 Partitioning 列无法更新。您可以使用id 以外的列重试吗?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-10-03
      • 2015-07-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多