当我启动spark-shell时出现以下错误

java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient

Caused by: java.lang.reflect.InvocationTargetException: org.apache.hadoop.hive.metastore.api.MetaException: Hive Schema version 1.2.0 does not match metastore's schema version 2.3.0 Metastore is not upgraded or corrupt

我已将hive-site.xml放在conf文件夹中,schema.verification设置为true . 由于此spark未在版本表中将模式更新为1.2.0,因此无法实例化MetaStoreClient .

但是如果我将它设置为false,它会在版本表中将模式更新为1.2.0,但是当使用hive命令从命令行启动时,我会通过hive客户端获得相同的错误 .

有没有办法解决这个问题 .