You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Zheng Shao (JIRA)" <ji...@apache.org> on 2010/01/13 09:08:54 UTC

[jira] Commented: (HIVE-1005) chinese word display wrong in hive cosole,can somebody help me?

    [ 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.