分享

hive不能删除表,建表也出现问题

sniperD 发表于 2016-5-15 13:15:53 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 5 15142
建了一个简单的表 test
删除的时候不知道问什么会出现这个问题
hive> drop table if exists test;
FAILED: SemanticException Unable to fetch table test. For direct MetaStore DB connections, we don't support retries at the client level.

而我建立一个比较复杂的表的时候又会出现这个问题
FAILED: ParseException line 6:0 Failed to recognize predicate 'order'. Failed rule: 'identifier' in column specification
说明一下,这个建表的语句我昨天用过的,是没问题的。

请大神解惑。。

已有(5)人评论

跳转到指定楼层
muyannian 发表于 2016-5-15 15:21:42
1.删除表
客户端不支持重试
在服务端 试试
2.新建表
尝试设置下面属性
hive.support.sql11.reserved.keywords=false
回复

使用道具 举报

sniperD 发表于 2016-5-15 15:38:41
muyannian 发表于 2016-5-15 15:21
1.删除表
客户端不支持重试
在服务端 试试

但是我的metastore就是本机的mysql啊,而且不支持重试是什么意思啊,我就删除一个表而已啊。。。
回复

使用道具 举报

sniperD 发表于 2016-5-15 15:49:04
muyannian 发表于 2016-5-15 15:21
1.删除表
客户端不支持重试
在服务端 试试

很感谢你,我用你这个设置之后可以建表了,但是不能做show create table sogou.sogou_20111230;这个操作,也是报这个错FAILED: SemanticException Unable to fetch table sogou_20111230. For direct MetaStore DB connections, we don't support retries at the client level.

回复

使用道具 举报

langke93 发表于 2016-5-15 18:23:26
本帖最后由 langke93 于 2016-5-15 18:24 编辑
sniperD 发表于 2016-5-15 15:49
很感谢你,我用你这个设置之后可以建表了,但是不能做show create table sogou.sogou_20111230;这个操作 ...

查看MySQL中hive元数据数据库的字符集,如果不是Latin1,修改即可。
修改下Hive元信息数据库的字符集:
mysql>alter database metastore_db character set latin1;

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条