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 !!
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/191008.html
標籤:其他
上一篇:Beeline連接hiveserver2報錯 User: root is not allowed to impersonate root
下一篇:linux 常用基礎命令
