Return-Path: Delivered-To: apmail-hadoop-hive-dev-archive@minotaur.apache.org Received: (qmail 2993 invoked from network); 11 Jun 2010 20:45:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Jun 2010 20:45:53 -0000 Received: (qmail 73865 invoked by uid 500); 11 Jun 2010 20:45:53 -0000 Delivered-To: apmail-hadoop-hive-dev-archive@hadoop.apache.org Received: (qmail 73826 invoked by uid 500); 11 Jun 2010 20:45:52 -0000 Mailing-List: contact hive-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hadoop.apache.org Delivered-To: mailing list hive-dev@hadoop.apache.org Received: (qmail 73818 invoked by uid 99); 11 Jun 2010 20:45:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jun 2010 20:45:52 +0000 X-ASF-Spam-Status: No, hits=-0.8 required=10.0 tests=AWL,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jsichi@facebook.com designates 69.63.179.25 as permitted sender) Received: from [69.63.179.25] (HELO mailout-sf2p.facebook.com) (69.63.179.25) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jun 2010 20:45:47 +0000 Received: from mail.thefacebook.com ([192.168.18.198]) by pp02.snc1.tfbnw.net (8.14.3/8.14.3) with ESMTP id o5BKilEZ010491 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Fri, 11 Jun 2010 13:44:47 -0700 Received: from sc-hub02.TheFacebook.com (192.168.18.105) by sc-hub03.TheFacebook.com (192.168.18.198) with Microsoft SMTP Server (TLS) id 14.0.694.1; Fri, 11 Jun 2010 13:38:49 -0700 Received: from SC-MBXC1.TheFacebook.com ([192.168.18.100]) by sc-hub02.TheFacebook.com ([192.168.18.105]) with mapi; Fri, 11 Jun 2010 13:34:35 -0700 From: John Sichi To: "hive-dev@hadoop.apache.org" CC: "'zhaozhifeng 00129982'" Date: Fri, 11 Jun 2010 13:33:00 -0700 Subject: RE: Hive-Hbase integration problem, ask for help Thread-Topic: Hive-Hbase integration problem, ask for help Thread-Index: AcsJDY3AgEtaaCBMRHKDq7uMYnxMagAl7sGv Message-ID: <3120E6F5005EE7419C125CE166D55E9007770D991D@SC-MBXC1.TheFacebook.com> References: <000a01cb090d$8e1d2290$26250102@china.huawei.com> In-Reply-To: <000a01cb090d$8e1d2290$26250102@china.huawei.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.8161:2.4.5,1.2.40,4.0.166 definitions=2010-06-11_02:2010-02-06,2010-06-11,2010-06-11 signatures=0 You should not be specifying any ROW FORMAT for an HBase table. >From the log in your earlier post, I couldn't tell what was going wrong; I = don' think it contained the full exception stacks. You might be able to di= g around in the actual log files to find more. JVS ________________________________________ From: Zhou Shuaifeng [zhoushuaifeng@huawei.com] Sent: Thursday, June 10, 2010 7:26 PM To: hive-dev@hadoop.apache.org Cc: 'zhaozhifeng 00129982' Subject: Hive-Hbase integration problem, ask for help Hi Guys, I download the hive source from SVN server, build it and try to run the hive-hbase integration. I works well on all file-based hive tables, but on the hbase-based tables, the 'insert' command cann't run successful. The 'select' command can run well. error info is below: hive> INSERT OVERWRITE TABLE hive_zsf SELECT * FROM zsf WHERE id=3D3; Total MapReduce jobs =3D 1 Launching Job 1 out of 1 Number of reduce tasks is set to 0 since there's no reduce operator Starting Job =3D job_201006081948_0021, Tracking URL =3D http://linux-01:50030/jobdetails.jsp?jobid=3Djob_201006081948_0021 Kill Command =3D /opt/hadoop/hdfs/bin/../bin/hadoop job -Dmapred.job.tracker=3Dlinux-01:9001 -kill job_201006081948_0021 2010-06-09 16:05:43,898 Stage-0 map =3D 0%, reduce =3D 0% 2010-06-09 16:06:12,131 Stage-0 map =3D 100%, reduce =3D 100% Ended Job =3D job_201006081948_0021 with errors Task with the most failures(4): ----- Task ID: task_201006081948_0021_m_000000 URL: http://linux-01:50030/taskdetails.jsp?jobid=3Djob_201006081948_0021 &tipid=3Dtask_201006081948_0021_m_000000 ----- FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.ExecDriver I create a hbase-based table with hive, put some data into the hbase table through the hbase shell, and can select data from it through hive: CREATE TABLE hive_zsf1(id int, name string) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t' STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler' WITH SERDEPROPERTIES ("hbase.columns.mapping" =3D ":key,cf1:val") TBLPROPERTIES ("hbase.table.name" =3D "hive_zsf1"); hbase(main):001:0> scan 'hive_zsf1' ROW COLUMN+CELL 1 column=3Dcf1:val, timestamp=3D1276157509028, value=3Dzsf 2 column=3Dcf1:val, timestamp=3D1276157539051, value=3Dzzf 3 column=3Dcf1:val, timestamp=3D1276157548247, value=3Dzw 4 column=3Dcf1:val, timestamp=3D1276157557115, value=3Dcjl 4 row(s) in 0.0470 seconds hbase(main):002:0> hive> select * from hive_zsf1 where id=3D3; Total MapReduce jobs =3D 1 Launching Job 1 out of 1 Number of reduce tasks is set to 0 since there's no reduce operator Starting Job =3D job_201006081948_0038, Tracking URL =3D http://linux-01:50030/jobdetails.jsp?jobid=3Djob_201006081948_0038 Kill Command =3D /opt/hadoop/hdfs/bin/../bin/hadoop job -Dmapred.job.tracker=3Dlinux-01:9001 -kill job_201006081948_0038 2010-06-11 10:25:42,049 Stage-1 map =3D 0%, reduce =3D 0% 2010-06-11 10:25:45,090 Stage-1 map =3D 100%, reduce =3D 0% 2010-06-11 10:25:48,133 Stage-1 map =3D 100%, reduce =3D 100% Ended Job =3D job_201006081948_0038 OK 3 zw Time taken: 13.526 seconds hive> ---------------------------------------------------------------------------= - --------------------------------------------------------- This e-mail and its attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. An= y use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!