Return-Path: X-Original-To: apmail-hive-user-archive@www.apache.org Delivered-To: apmail-hive-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D9517108A5 for ; Tue, 16 Jul 2013 08:10:56 +0000 (UTC) Received: (qmail 52845 invoked by uid 500); 16 Jul 2013 08:10:53 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 52645 invoked by uid 500); 16 Jul 2013 08:10:53 -0000 Mailing-List: contact user-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hive.apache.org Delivered-To: mailing list user@hive.apache.org Received: (qmail 52617 invoked by uid 99); 16 Jul 2013 08:10:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jul 2013 08:10:45 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of justlooks@gmail.com designates 209.85.219.43 as permitted sender) Received: from [209.85.219.43] (HELO mail-oa0-f43.google.com) (209.85.219.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jul 2013 08:10:38 +0000 Received: by mail-oa0-f43.google.com with SMTP id i7so450138oag.16 for ; Tue, 16 Jul 2013 01:10:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=B8TWbwImFIVnHDeAqWP2eYMyxF7sk7FWwp8NmL3vjxs=; b=I/zJlotNLir2ckmPRdhVBnAyZ+grTb5/9wm8sIo3DnzS+VjvBx/YKCB2UewBVmcNLo b+zaY10GezXsR52ajC4hNa67SC/pmEl2UAXUj1yjZioqFdy1ug6RA+cY3X53Fiolb24w BqfaeLWcqqBMD5zol+GiEkU9Fw8UT5zgNWhMkBG1Kc+P7LArwRH4LsMbkZCBbqPYUNLs ruOscKZW74FNs6Fg4BOo6vK7r8ndcYxMz8PrZLSpipcTpCSXPDgITTS63FHDFE6TCMk+ BCuXdn66GKy9Owibb+3vqcfCu+jZtZI1L6psmZn3G1LKNkfxFf+WCziRc/sR2O32XmJQ Wq0g== MIME-Version: 1.0 X-Received: by 10.60.97.1 with SMTP id dw1mr579820oeb.1.1373962216807; Tue, 16 Jul 2013 01:10:16 -0700 (PDT) Received: by 10.182.103.41 with HTTP; Tue, 16 Jul 2013 01:10:16 -0700 (PDT) Date: Tue, 16 Jul 2013 16:10:16 +0800 Message-ID: Subject: can hive use where clause in jdbc? From: ch huang To: user@hive.apache.org Content-Type: multipart/alternative; boundary=089e011774cdde24cf04e19c8183 X-Virus-Checked: Checked by ClamAV on apache.org --089e011774cdde24cf04e19c8183 Content-Type: text/plain; charset=ISO-8859-1 here is my test output,why the beeline report error when i use where condition?? hive> select foo from demo_hive where bar='value3'; Total MapReduce jobs = 1 Launching Job 1 out of 1 Number of reduce tasks is set to 0 since there's no reduce operator Starting Job = job_1373509276088_0015, Tracking URL = http://CH22:8088/proxy/application_1373509276088_0015/ Kill Command = /usr/lib/hadoop/bin/hadoop job -kill job_1373509276088_0015 Hadoop job information for Stage-1: number of mappers: 1; number of reducers: 0 2013-07-16 16:00:05,538 Stage-1 map = 0%, reduce = 0% 2013-07-16 16:00:11,958 Stage-1 map = 100%, reduce = 0%, Cumulative CPU 5.6 sec MapReduce Total cumulative CPU time: 5 seconds 600 msec Ended Job = job_1373509276088_0015 MapReduce Jobs Launched: Job 0: Map: 1 Cumulative CPU: 5.6 sec HDFS Read: 245 HDFS Write: 2 SUCCESS Total MapReduce CPU Time Spent: 5 seconds 600 msec OK 3 Time taken: 15.236 seconds 0: jdbc:hive2://192.168.10.22:10000> select foo from demo_hive where bar='value3'; Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MapRedTask (state=08S01,code=1) Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.MapRedTask (state=08S01,code=1) --089e011774cdde24cf04e19c8183 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
here is my test output,why the beeline report error when i use where c= ondition??
=A0
hive> select foo from demo_hive where bar=3D'value3';
To= tal MapReduce jobs =3D 1
Launching Job 1 out of 1
Number of reduce ta= sks is set to 0 since there's no reduce operator
Starting Job =3D jo= b_1373509276088_0015, Tracking URL =3D http://CH22:8088/proxy/application_137350927= 6088_0015/
Kill Command =3D /usr/lib/hadoop/bin/hadoop job=A0 -kill job_1373509276088_= 0015
Hadoop job information for Stage-1: number of mappers: 1; number of= reducers: 0
2013-07-16 16:00:05,538 Stage-1 map =3D 0%,=A0 reduce =3D 0= %
2013-07-16 16:00:11,958 Stage-1 map =3D 100%,=A0 reduce =3D 0%, Cumula= tive CPU 5.6 sec
MapReduce Total cumulative CPU time: 5 seconds 600 msec
Ended Job =3D jo= b_1373509276088_0015
MapReduce Jobs Launched:
Job 0: Map: 1=A0=A0 Cum= ulative CPU: 5.6 sec=A0=A0 HDFS Read: 245 HDFS Write: 2 SUCCESS
Total Ma= pReduce CPU Time Spent: 5 seconds 600 msec
OK
3
Time taken: 15.236 seconds
=A0
0: jdbc:hive2://192.168.10.22:1= 0000> select foo from demo_hive where bar=3D'value3';
Err= or: Error while processing statement: FAILED: Execution Error, return code = 1 from org.apache.hadoop.hive.ql.exec.MapRedTask (state=3D08S01,code=3D1) Error: Error while processing statement: FAILED: Execution Error, return co= de 1 from org.apache.hadoop.hive.ql.exec.MapRedTask (state=3D08S01,code=3D1= )
--089e011774cdde24cf04e19c8183--