cdh hive开启事物机制

操作系统:CentOS Linux release 7.4.1708 (Core)    研发环境
软件环境:cdh5.15.1 
记录时间:20190729


修改hive的配置参数,使其支持行级insert、update、delete操作
服务端:
hive-site.xml 的 Hive 服务高级配置代码段(安全阀)
hive.txn.manager = org.apache.hadoop.hive.ql.lockmgr.DbTxnManager  
hive.compactor.initiator.on = true  
hive.compactor.worker.threads=1

客户端
hive-site.xml 的 Hive 客户端高级配置代码段(安全阀)
hive.txn.manager = org.apache.hadoop.hive.ql.lockmgr.DbTxnManager 
hive.support.concurrency = true  
hive.enforce.bucketing = true  
hive.exec.dynamic.partition.mode = nonstrict

 

posted @ 2019-07-30 10:34  bioamin  阅读(868)  评论(0编辑  收藏  举报