Spark操作sparkSql报错:metastore.ObjectStore: Version information found in metastore differs 2.3.0 from expected schema version 1.2.0. Schema verififcation is disabled hive.metastore.schema.verification so setting version.
解决方案:需要在hive-site.xml中配置hive.metastore.uris。如下:

然后重启spark-shell即可。
本文介绍了解决Spark操作Spark SQL时报错版本信息不符的问题。通过在hive-site.xml文件中配置hive.metastore.uris参数,可以解决因版本不一致导致的操作失败问题。
814





