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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM