hive2.1.insert、update、delete操作测试
在HIve缺省配置设置中,转换管理器不支持update跟delete操作。
若要Hive支持update操作跟delete操作,必须额外再配置一些东西,详细见:
https://cwiki.apache.org/confluence/display/Hive/Hive+Transactions
Configuration
Minimally, these configuration parameters must be set appropriately to turn on transaction support in Hive:
Client Side
- hive.support.concurrency – true
- hive.enforce.bucketing – true (Not required as of

这篇博客介绍了如何在Hive 2.1中启用并执行INSERT、UPDATE和DELETE操作,包括必要的配置参数设置,如'hive.support.concurrency'和'hive.txn.manager'。通过示例展示了创建事务性表、插入数据和删除数据的语句。然而,由于性能问题,Hive的这些操作可能需要进一步优化或在未来的版本中改进。
最低0.47元/天 解锁文章
3042

被折叠的 条评论
为什么被折叠?



