如题。
建表:create table test222 (id int,name string) row format delimited fields terminated by ',' stored as textfile;
插入英文数据:hive> insert into table test222 values (1,'row1'),(2,'row2');
查询刚插入的数据:hive> select * from test222;
查询出的数据正常,没有出现乱码。
--------------------------------分割线---------------------------------
插入中文数据:hive> insert into table test222 values (3,'测试数据1'),(4,'测试数据2');
查询刚插入的中文数据:hive> select * from test222;
从查询结果看出,刚插入的中文数据已经乱码了。
这个问题怎么破~~
|