【异常】Version information found in metastore differs 1.1.0 from expected schema version 1.2.0. Schema

运行Spark作业出现异常:

ERROR ObjectStore: Version information found in metastore differs 1.1.0 from expected schema version 1.2.0. Schema verififcation is disabled hive.metastore.schema.verification so setting version.

解决方案:需要在hive-site.xml中配置(配置在Hive中的在hive-site.xml配置文件,并且配置在Spark/conf下的在hive-site.xml配置文件):

<property>
    <name>hive.metastore.schema.verification</name>
    <value>false</value>
</property>

猜你喜欢

转载自www.cnblogs.com/huomei/p/12096596.html