spark-shell报错:Version information found in metastore differs 2.3.0 from expected schema version1.2.0

在使用Spark Shell执行`show tables`时遇到错误,提示元数据版本不匹配(2.3.0与1.2.0)。为解决此问题,需要在`hive-site.xml`配置文件中关闭版本验证,将`hive.metastore.schema.verification`设置为`false`。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

spark-shell执行如下语句时候

scala> spark.sql("show tables").show

报错:

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中配置禁用版本验证:

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值