首页 > 解决方案 > 为什么 drop table 在 impala-shell 中失败但在 Hue/Impala 中有效?

问题描述

这对我来说很奇怪,我有一个没有进行 kerberorized 的小型 Cloudera 集群。我能够在 Hue/Impala 中运行删除表查询,但无法在 impala-shell 中执行。

以下代码来自 impala-shell:

[hadoop01:21000] > use client1;
Query: use client1
[hadoop01:21000] > show tables;
Query: show tables
+--------------------------------------+
| name                                 |
+--------------------------------------+
| loadstats_201812_q2_grouped_by_month |
| loanstats_201812_q2_staged           |
+--------------------------------------+
Fetched 2 row(s) in 0.01s

注意下面我要删除第一个表:

[hadoop01:21000] > DROP TABLE IF EXISTS client1.loanStats_201812_q2_grouped_by_month purge;
Query: drop TABLE IF EXISTS client1.loanStats_201812_q2_grouped_by_month purge

没有报错,我以为是丢了,但不是

[hadoop01:21000] > show tables;
Query: show tables
+--------------------------------------+
| name                                 |
+--------------------------------------+
| loadstats_201812_q2_grouped_by_month |
| loanstats_201812_q2_staged           |
+--------------------------------------+
Fetched 2 row(s) in 0.01s

角色/组检查:

在 Hue 中,我属于具有以下权限的“默认”组:

在此处输入图像描述

在我运行 impala-shell 的主机中,我在 wheel/sudo 组中。

在 hdfs 上,我在轮子上。

我还能检查什么?任何线索表示赞赏,非常感谢您提前。

标签: clouderaimpalahue

解决方案


推荐阅读