如何在hive中执行更新?

jobtbby3  于 2021-05-29  发布在  Hadoop
关注(0)|答案(1)|浏览(276)

当我使用update语句时,我得到以下响应。
更新t1 set t1.id=t2.id,t1.name=t2.name,t1.age=t2.age where t2.id in(从t1中选择id);
失败:semanticexception[error 10294]:尝试使用不支持这些操作的事务管理器进行更新或删除。
有人能给我一个解决办法吗?

ogq8wdun

ogq8wdun1#

您必须为事务处理启用表,在创建表架构时必须提到这一点。
你可以参考下面的网站了解如何实现这一点。
http://unmeshasreeveni.blogspot.fr/2014/11/updatedeleteinsert-in-hive-0140.html

相关问题