码迷,mamicode.com
首页 > 其他好文 > 详细

Hive安装(三)之奇怪的错误

时间:2015-11-29 23:01:54      阅读:144      评论:0      收藏:0      [点我收藏+]

标签:

  启动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 

Hive安装(三)之奇怪的错误

标签:

原文地址:http://www.cnblogs.com/bigdatafly/p/5005686.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!