HIVE 汉字是乱码显示设置+SecureCRT汉字显示乱码
去hive-site.XML里面查看jdbc:mysql://master:3306/sparksql?createDatabaseIfNotExist=true这个链接的sparksql表里面设置:
alter table COLUMNS_V2 modify column COMMENT varchar(256) character set utf8;
alter table TABLE_PARAMS modify column PARAM_VALUE varchar(4000) character set utf8;
alter table PARTITION_PARAMS modify column PARAM_VALUE varchar(4000) character set utf8;
alter table PARTITION_KEYS modify column PKEY_COMMENT varchar(4000) character set utf8;
alter table INDEX_PARAMS modify column PARAM_VALUE varchar(4000) character set utf8;
最后hive-site.XML修改为完整语句:jdbc:mysql://master:3306/sparksql?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=UTF-8
SecureCRT汉字显示乱码:
最后的结果: