异常"/>
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
发布评论