Attempt to do update or delete on table db1.table1 that is not transactional解决
在datagrip嘗試對hive中的表格進(jìn)行刪除,碰到了這么個(gè)問題
Attempt to do update or delete on table db1.table1 that is not transactional
官方依據(jù)是[1],也就是說支持事務(wù)操作需要設(shè)置一大堆東西.
根據(jù)[2][3]配置完后,
記得重啟元數(shù)據(jù)服務(wù),
重啟hiveserver2
重啟yarn timelineserver
重啟時(shí)都新開終端。
上述配置完后,應(yīng)該是可以了。
但是也只是可能而已。
如果hive中進(jìn)行delete的時(shí)候卡住,注意檢查yarn界面是不是資源占滿了。
測試:
①use db1;
②create table t1(id int, name string)
clustered by (id) into 8 buckets
stored as orc TBLPROPERTIES (‘transactional’=‘true’);
③
insert into t1 values (1,‘a(chǎn)aa’);
insert into t1 values (2,‘bbb’);
④
update t1 set name=‘ccc’ where id=1;
delete from t1 where id=2;
完整Hive配置:
https://gitee.com/appleyuchi/cluster_configuration/blob/master/spark3.0.0-hadoop3.2.1離線多機(jī)集群配置-完成/apache-hive-3.0.0-bin-完成/conf/hive-site.xml
Reference:
[1]Hive Transactions
[2]hive0.14-insert、update、delete操作測試
[3]CDH5.4.10 在Hive上執(zhí)行Update,Delete操作報(bào)錯(cuò)Attempt to do update or
總結(jié)
以上是生活随笔為你收集整理的Attempt to do update or delete on table db1.table1 that is not transactional解决的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Requested resource=<
- 下一篇: 百度文库怎么看vip部分(登录百度帐号)