启动hive命令报错 “Metastore contains multiple versions”

解决方案:

因为hive metastore存储在mysql中,所以登录mysql,use hive所使用的DB,然后 查询下VERSION表 

 1 mysql> select * from VERSION;
 2 
 3 +——–+—————-+——————+ 
 4 | VER_ID | SCHEMA_VERSION | VERSION_COMMENT | 
 5 +——–+—————-+——————+ 
 6 | 1 | 0.14.0 | Set by MetaStore | 
 7 | 2 | 0.14.0 | Set by MetaStore | 
 8 | 3 | 0.14.0 | Set by MetaStore | 
 9 | 4 | 0.14.0 | Set by MetaStore | 
10 | 5 | 0.14.0 | Set by MetaStore | 
11 | 6 | 0.14.0 | Set by MetaStore | 
12 +——–+—————-+——————+

保留第一条记录,其他记录全部删除

 delete from VERSION where VER_ID !=1 

相关文章:

  • 2021-09-10
  • 2021-07-08
  • 2021-04-17
  • 2021-10-30
  • 2021-12-21
  • 2022-12-23
  • 2021-07-13
  • 2022-12-23
猜你喜欢
  • 2021-11-17
  • 2022-01-14
  • 2022-12-23
  • 2022-01-29
  • 2021-10-16
  • 2022-02-15
  • 2021-08-05
相关资源
相似解决方案