【发布时间】:2020-11-20 01:02:47
【问题描述】:
我在 hive 3.1 中直接使用 impala 3.4。
问题是如果你在hive中创建一个通用表,然后在impala中选择它,就会出现错误。
错误信息如下:
Query: show tables
+----------+
| name |
+----------+
| customer |
| lineitem |
| nation |
| orders |
| part |
| partsupp |
| region |
| supplier |
| t |
+----------+
Fetched 9 row(s) in 0.02s
[host.cluster.com] default> select * from customer;
Query: select * from customer
Query submitted at: 2020-11-20 09:56:12 (Coordinator: http://host.cluster.com:25000)
ERROR: AnalysisException: Operation not supported on transactional (ACID) table: default.customer
在hive中,acid表和orc表只关心删除还是更新,但我知道选择是常见的。
其实select语句一般是通过hive jdbc来执行的。只有 impala 愿意帮助您了解为什么会发生此错误。
【问题讨论】:
-
orc 表也无法读取
标签: hive transactions impala acid