1.錯誤信息mysql
(1366, "Incorrect string value: '\\xE6\\x8E\\x88\\xE6\\x9D\\x83...' for column 'search' at row 1")sql
(1)查看元數據hive庫中的編碼格式數據庫
(2)更改hive數據庫字符集編碼
alter database hive charset utf8;
(3)更改字段類型spa
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;
在impala 頁面報錯:1366, "Incorrect string valuecode
mysql> use hue;
mysql> ALTER TABLE desktop_document2 modify column name varchar(255) CHARACTER SET utf8;
mysql> ALTER TABLE desktop_document2 modify column description longtext CHARACTER SET utf8;
mysql> ALTER TABLE desktop_document2 modify column search longtext CHARACTER SET utf8;
blog