hive For direct MetaStore DB connections, we don't support retries at the client level异常

编程入门 行业动态 更新时间:2024-10-23 09:35:00

hive For direct MetaStore DB connections, we don't support retries at the client level<a href=https://www.elefans.com/category/jswz/34/1771210.html style=异常"/>

hive For direct MetaStore DB connections, we don't support retries at the client level异常

在练习hive分区时,上传数据到分区,出现以上错误。解决办法如下:

1. mysql-connector-java这个jar包的版本不对,换个版本。我mysql5.7 ,mysql-connector8.0的,后来换成mysql-connector5.1的。

2.hive 默认编码utf-8,查看mysql编码:show variables like '%charac%';

把编码要改成下图结果:

在mysql配置文件 中修改:

binlog_format=MIXED
collation_server = utf8_general_ci
character_set_server = utf8

最后重启mysql服务:

service mysqld restart;

show variables like '%charac%';查看修改结果。

重启hive。

更多推荐

hive For direct MetaStore DB connections, we don't support retries at the c

本文发布于:2024-02-17 04:00:01,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1692562.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:异常   MetaStore   DB   hive   direct

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!