0

我从现有的 s3 文件在 hive 中创建了一个表,如下所示:

 create table reconTable (
 entryid string,
 run_date string
 )
 LOCATION 's3://abhishek_data/dump1';

现在我想更新一个条目如下:

update reconTable set entryid='7.24E-13' where entryid='7.24E-14';

但我收到以下错误:

FAILED: SemanticException [Error 10294]: Attempt to do update or delete using transaction manager that does not support these operations.

我在这里浏览了一些帖子,但不知道如何解决这个问题。

4

2 回答 2

0

我认为您应该external在从诸如S3.

此外,您应该以 ORC 格式声明表并设置属性 'transactional'='true'

有关更多信息,请参阅此内容:尝试执行更新或删除使用事务管理器

于 2018-11-05T07:37:51.967 回答
0

您可以参考这个 Cloudera 社区主题:

https://community.cloudera.com/t5/Support-Questions/Hive-update-delete-and-insert-ERROR-in-cdh-5-4-2/td-p/29485

于 2021-09-07T07:10:41.090 回答