如:在hive1上建表create table tmp_20150329_aaa(
a string
)
partitioned by (c string) stored as rcfile
在hive2下 添加新的字段
alter table tmp_20150329_aaa add columns(b string)
再回到hive1下
desc 表的时候显示
Query returned non-zero code: 10001, cause: FAILED: SemanticException [Error 10001]: Table not found tmp_20150329_aaa
但在hive2下
desc 表 能显示出来
hive (default)> desc tmp_20150329_aaa;
OK
col_name data_type comment
a string from deserializer
b string from deserializer
c string None
在hive2的beeline下desc 表出错
0: jdbc:hive2://x.x.x.x:xxxx/defalut> desc tmp_20150329_aaa;
Error: Error while processing statement: FAILED: SemanticException [Error 10001]: Table not found tmp_20150329_aaa (state=42S02,code=10001)