hive启动失败,Hive Schema version 3.1.0版本问题

MetaException(message:Hive Schema version 3.1.0 does not match metastore’s schema version 1.2.0 letastore is not upgraded or corrupt)

Caused bty: Met Exception(message:Hive Schema version 3.1.8 does not match metastore 's schema version 1.2.0 letastore is not upgraded or corrupt)
在这里插入图片描述

解决办法两种:

Num one:
	登陆mysql,修改hive metastore版本:
	进行mysql:mysql -u root -p 123456
	use hive-demo; 
	select * from version;
	update VERSION set SCHEMA_VERSION='3.1.0' where  VER_ID=1;

在这里插入图片描述

Num two:
	非常简单方便,在hive-site.xml中关闭版本验证
<property>
	<name>hive.metastore.schema.verification</name>
	<value>false</value>
</property>

在这里插入图片描述
一切OK, All is Well !!

猜你喜欢

转载自blog.csdn.net/lkm0522/article/details/109236788