【发布时间】:2015-02-18 22:29:40
【问题描述】:
我在 Hive 中创建的两个表存在问题。我使用
创建了这两个表创建 TABLE 表 LIKE other_table;
然后尝试使用
将存储格式更改为ORCALTER TABLE 表 SET FILEFORMAT ORC;
这显然损坏了表,因为它们现在在访问它们时会抛出 table not found 的错误。但是,它们仍然出现在一个带有显示表的位置;陈述。现在,我不能删除表或创建具有相同名称的新表。这是 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>
【问题讨论】: