FAQ-Caused by: MetaException(message:Hive Schema version 2.1.0 does not match metastore's schema version 1.2.0 Metastore is not upgraded or corrupt)

问题描述/异常栈

Caused by: MetaException(message:Hive Schema version 2.1.0 does not match metastore's schema version 1.2.0 Metastore is not upgraded or corrupt)

解决方案

解决方案为添加配置到hive-site.xml文件中:  
< property>  
 &emsp;&emsp;
<name>hive.metastore.schema.verification.record.version</name>  
 &emsp;&emsp;
 <value>false< /false>  
< property>

问题原因

当使用hive-1.2客户端连接hive-2.1时,可能会修改hivemeta数据库version表,导致抛出该异常

作者:焦巍