我在Hive中创建了两个表的问题。我使用
创建了两个表CREATE TABLE表LIKE other_table;
然后尝试使用
将存储格式更改为ORCALTER TABLE表SET FILEFORMAT ORC;
这显然破坏了表格,因为它们现在抛出了一个表格错误,无论何时访问它们都找不到。然而,他们仍然出现在一个展示表;声明。现在,我不能删除表或创建具有相同名称的新表。以下是Hive CLI的直接输出:
hive> show tables;
OK
bk_new_profile_events
bk_new_profiles
Time taken: 0.245 seconds, Fetched: 19 row(s)
hive> drop table bk_new_profiles;
FAILED: SemanticException [Error 10001]: Table not found bk_new_profiles
hive> drop table bk_new_profile_events;
FAILED: SemanticException [Error 10001]: Table not found bk_new_profile_events
hive>
答案 0 :(得分:1)
使用hdfs命令手动删除表的目录:
hdfs dfs -rm -r / path / to / the / table
(照顾-r)