报错截图
1.mysql数据库创建数据库的时候的字符集默认是latin1,之前可能被修改过,改成UTF8或者其他
以此命令查看show variables like '%char%';
查看字符集
2.以latin1字符集重建hive数据库
create database hive character set latin1;
重建后的字符集
初始化成功!
参考博客:https://blog.csdn.net/lsr40/article/details/79422718