Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 21FC110210 for ; Fri, 6 Dec 2013 06:29:56 +0000 (UTC) Received: (qmail 18345 invoked by uid 500); 6 Dec 2013 06:01:51 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 18265 invoked by uid 500); 6 Dec 2013 06:01:46 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 18238 invoked by uid 500); 6 Dec 2013 06:01:41 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 18232 invoked by uid 99); 6 Dec 2013 06:01:40 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Dec 2013 06:01:40 +0000 Date: Fri, 6 Dec 2013 06:01:40 +0000 (UTC) From: "alex kim (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HIVE-5974) chinese character can not display normally when use hive jdbc 0.10.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 alex kim created HIVE-5974: ------------------------------ Summary: chinese character can not display normally when use h= ive jdbc 0.10.0 Key: HIVE-5974 URL: https://issues.apache.org/jira/browse/HIVE-5974 Project: Hive Issue Type: Bug Components: HiveServer2 Affects Versions: 0.10.0 Environment: OS : redhat6.2 hadoop CDH4.4 hive 0.10.0 hive-se= rver2 Reporter: alex kim Priority: Critical when i query table using hive jdbc which content contains chinese character= s ,it can not be display normally # hive -S -e "select * from test_alex" 1 =E6=88=91=E7=9A=84=E6=B5=8B=E8=AF=95 =E6=B5=8B=E8=AF=95 run java code using hive jdbc output=20 1:????:?? here is my test code import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; =20 public class DemoHive { =09 =20 public static void main(String[] args) throws Exception { =20 Class.forName("org.apache.hive.jdbc.HiveDriver"); =20 Connection hiveConn =3D DriverManager.getConnection("jdbc= :hive2://192.168.10.223:10000/default","" ,""); =20 Statement stat =3DhiveConn.createStatement();=20 ResultSet rs =3D stat.executeQuery( "select * from test_ale= x" ); int i=3D1; while(rs.next()) { System.out.println(i+":"+rs.getString("name")+":"+rs.ge= tString("email")); i++; } } } -- This message was sent by Atlassian JIRA (v6.1#6144)