Sqoop 从hive中使用export导出到mysql中,出现乱码问题
如图所示
解决方案:
Mysql建库时,设置编码方式为utf8。
create database if not exists testDEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
character set 是字符集
collate 设置排序规则。
预防万一,建表也设置成utf8
CREATE TABLE IF NOT EXISTS t_order_subscribe_total(
DATE DATE COM...
原创
2021-12-23 23:52:41 ·
951 阅读 ·
0 评论