您的位置:首页 > 其它

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

2015-12-05 23:46 162 查看
启动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 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: