hive 建表报错 For direct MetaStore DB connections, we don't support retries at the client level

在尝试使用Hive进行数据库操作时,遇到一个错误提示,指出对于直接连接MetaStore DB的情况,客户端不支持重试机制。问题涉及到对Hive数据库的alter操作,具体命令为更改database hive的字符集为latin1。
摘要由CSDN通过智能技术生成
hive 已经有建表语句,然后导入建表, 以下是过程

[root@master exercise]# hive -f /opt/exercise/visits.hive

Logging initialized using configuration in jar:file:/opt/apache-hive-1.2.2-bin/lib/hive-common-1.2.2.jar!/hive-log4j.properties
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message: For direct MetaStore DB connections, we don't support retries at the client level.)


这个是因为 hive 用到的mysql 连接包版本不匹配的原因。 我安装的mysql 是 5.6.33,从网络上下载了一个mysql-connector- Java -5.1.36.jar,替换,重启hive,问题解决。



我下载了mysql-connector-java-5.1.25-bin 没用 !!!


评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值