hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zheng Shao (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HIVE-1005) chinese word display wrong in hive cosole,can somebody help me?
Date Wed, 13 Jan 2010 08:08:54 GMT

    [ https://issues.apache.org/jira/browse/HIVE-1005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12799647#action_12799647
] 

Zheng Shao commented on HIVE-1005:
----------------------------------

In Driver.java, remove "UTF-8", or replace with the encoding of your data.

{code}
        ss = Utilities.readColumn(resStream, bos);
        if (bos.getCount() > 0)
          row = new String(bos.getData(), 0, bos.getCount(), "UTF-8");
        else if (ss == Utilities.streamStatus.TERMINATED)
          row = new String();
{code}


> chinese word display wrong in hive cosole,can somebody help me?
> ---------------------------------------------------------------
>
>                 Key: HIVE-1005
>                 URL: https://issues.apache.org/jira/browse/HIVE-1005
>             Project: Hadoop Hive
>          Issue Type: Bug
>    Affects Versions: 0.6.0
>         Environment: my hive version hive-0.3.99.1+0
> hadoop version hadoop-0.20.1+152
>            Reporter: chanceluo
>             Fix For: 0.6.0
>
>
> my hive version hive-0.3.99.1+0
> hadoop version hadoop-0.20.1+152
> linux 2.6
> when I use select command in hive cosole
> SELECT pv_gender_sum.*    FROM pv_gender_sum , all chinese words display wrong
> I guess is Character coding problem.can can i solve it ??
> but if i use    
>  INSERT OVERWRITE LOCAL DIRECTORY '/tmp/pv_gender_sum'   SELECT pv_gender_sum.*    FROM
pv_gender_sum; 
> chinese words in /tmp/pv_gender file looks file. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message