适用模块/版本

HIVE

具体说明

背景:企知道数据迁移,遇到事务表迁移场景

Task-228048: 【企知道】CDP hive3 事务表迁移到 NDH hive2 事务表并可读 https://overmind-project.netease.com/v2/my_workbench/taskdetail/Task-228048

NDH Hive2.3.8默认不支持ACID表,如果需要开启,需要配置全局参数并且服务级别同步配置重启

使用示例

#ops hive服务 hive-site.xml配置组
hive.support.concurrency = true
hive.exec.dynamic.partition.mode =nonstrict
hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager
hive.compactor.initiator.on=true
hive.compactor.cleaner.on =true
hive.compactor.worker.threads =10

#服务级别同步配置重启

INFO-HIVE修改全局配置支持事务表 - 图1