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 EE6837EE7 for ; Tue, 13 Dec 2011 05:57:09 +0000 (UTC) Received: (qmail 5917 invoked by uid 500); 13 Dec 2011 05:57:06 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 5831 invoked by uid 500); 13 Dec 2011 05:57:05 -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 5812 invoked by uid 99); 13 Dec 2011 05:57:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2011 05:57:03 +0000 X-ASF-Spam-Status: No, hits=3.6 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_REPLYTO,FREEMAIL_REPLYTO_END_DIGIT,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.139.212.185] (HELO nm26.bullet.mail.bf1.yahoo.com) (98.139.212.185) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 13 Dec 2011 05:56:50 +0000 Received: from [98.139.212.148] by nm26.bullet.mail.bf1.yahoo.com with NNFMP; 13 Dec 2011 05:56:29 -0000 Received: from [98.139.212.241] by tm5.bullet.mail.bf1.yahoo.com with NNFMP; 13 Dec 2011 05:56:29 -0000 Received: from [127.0.0.1] by omp1050.mail.bf1.yahoo.com with NNFMP; 13 Dec 2011 05:56:29 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 573223.90535.bm@omp1050.mail.bf1.yahoo.com Received: (qmail 73475 invoked by uid 60001); 13 Dec 2011 05:56:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1323755789; bh=Cg/2gHXDRYs4pKCY8VmHFP5yLRtYqqixQOEXnUInlV8=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=WvZR0BTJAhq/rgQSe9u8fXxFnIJXJ2FEXP1Xp3STJ5CfsjQx4o6XtLQk+u9UcvYUMLtrbZn/vLuO30nNRzR794QFtirQoPOS0MVH0EphDMBkZJC8HE6UzfbGgKgoU8ubwV1kr8GGGw58qIzq31Wn8KwlG/NYpy/583Y46v4uBhw= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=HXz3TN9expXTab5cMkhFB5u4pTTHznQigJ+M3hnhntRM7uqTl53CdT/WU5k+fH+B0M+b1wKe2i2nVKirIIiJ4KUPHyHW32dSTRcSg8JKcRTWCZnxYDXzCojM4w3SkwqgdOa5Q0UFUGySFpiNN15O/Uvgn8VR86uZ5XOZQH24HL4=; X-YMail-OSG: LHPvnxcVM1krl48BzuLyPg2gsPRpI24JMF22IISikXMwlAg IMiV97XgEi5g5LxgJ7Pa7czAdazkA4lONxFm_LE9FFrRpOB9Ms2bgU_67Nd4 NMEcRY3Y8ML9iAm35iUPoFRrLmBo_suXzxm9FXJ0HzzrajfJaD7k2ZHg1KOg adrEQfw_Dv9gCEhXYuQgXMczSKarmv4y_JXFszFAg6lYBmmVAnU4cqbH3AWc Mm3mQytLWfjlisSvtQ4_6d_py4vC4sv9Xlh7OpattHfV50Y5e22thTOSMfSY HMh.WoxTl2ErzgrT2YcvuCtXLh5NQQ4sm7SHqzP7Mey0_jSr_gEnPLRhTBnV ho3XLSGfCB5UTkq6Y6SF8uua5fHcrAhqgopIZjyGYlDhCJ9Iln1_YVBnB_Ql 2.V7nWrZ_dU9PxL1FOeJKa22rmKyrfGoeT00GhvU7i6MnnEae.Om6b9f7FSN mzGGL.DhYhoFQ8Inh_2v2KpipScJqKdjFlWo- Received: from [66.27.99.176] by web162103.mail.bf1.yahoo.com via HTTP; Mon, 12 Dec 2011 21:56:29 PST X-Mailer: YahooMailWebService/0.8.115.331698 References: <1323754211.42689.YahooMailNeo@web162101.mail.bf1.yahoo.com> <1323754749.50048.YahooMailNeo@web162106.mail.bf1.yahoo.com> <1323754870.60475.YahooMailNeo@web162102.mail.bf1.yahoo.com> Message-ID: <1323755789.72165.YahooMailNeo@web162103.mail.bf1.yahoo.com> Date: Mon, 12 Dec 2011 21:56:29 -0800 (PST) From: Aditya Kumar Reply-To: Aditya Kumar Subject: Re: Hive Basic question To: "user@hive.apache.org" Cc: "manu.infy@gmail.com" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org no luck..=0A=0Ahere is the Error I am getting:=0A=0Ahive>=0A=A0 =A0 > CREAT= E TABLE hbase_table_1(key int, event string)=0A=A0 =A0 > STORED BY 'org.apa= che.hadoop.hive.hbase.HBaseStorageHandler'=0A=A0 =A0 > WITH SERDEPROPERTIES= ("hbase.columns.mapping" =3D ":key,cf1:val")=0A=A0 =A0 > TBLPROPERTIES ("h= base.table.name" =3D 'USER_DETAILS');=0AFAILED: Error in metadata: MetaExce= ption(message:Table=A0USER_DETAILS=A0already exists within HBase; use CREAT= E EXTERNAL TABLE instead to register it in Hive.)=0AFAILED: Execution Error= , return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask.=0A=0AI dont wa= nt to create a external table ..but to access the data from hbase=0A=0A=0A= =0A=0A________________________________=0AFrom: Abhishek Pratap Singh =0ATo: Aditya Kumar =0ACc: "user@= hive.apache.org" =0ASent: Monday, December 12, 2011 = 9:44 PM=0ASubject: Re: Hive Basic question=0A=0A=0Ait will work, as you wil= l provide the Serde properties related to HBase. Just create the hive table= , map it with HBase table and try to access it.=0A=0A=0A~Abhishek=0A=0AOn T= ue, Dec 13, 2011 at 12:41 AM, Aditya Kumar wrote= :=0A=0A=0A>Thanks Abhishek for the response.=0A>I did see that link but tha= t is telling more creating HIVE table and than check in HBAse.=0A>my case i= s I have the data in tables in Hbase. i can view them in HBase.=0A>but want= to do access them from HIVE.=0A>=0A>btn I am new to Hadoop world.=0A>=0A>C= an yoyu pl let me know if I am missing anything and how to proceed=0A>=0A>= =0A>=0A>________________________________=0A>From: Abhishek Pratap Singh =0A>To: user@hive.apache.org; Aditya Kumar =0A>Sent: Monday, December 12, 2011 9:32 PM=0A>Subject: Re: Hiv= e Basic question=0A>=0A>=0A>=0A>Here you go, check this link=0A>=0A>https:/= /cwiki.apache.org/confluence/display/Hive/HBaseIntegration=0A>=0A>Regards,= =0A>Abhishek=0A>=0A>On Tue, Dec 13, 2011 at 12:30 AM, Aditya Kumar wrote:=0A>=0A>Hi,=0A>>I have a Hbase table that I am abl= e to insert data and do scan.=0A>>I want to have use HIVE,.=0A>>=0A>>I was = able to install HIVE and login to Hive Console.=0A>>Can you please tell me = the way I can access the HBASE Table fgrom HIVE.=0A>>I want to use HQL Comm= ands on HBase table...=0A>>=0A>>please let me know how to do that .=0A>>=0A= >>Thanks in Advance=0A>>-Adi=0A>>=A0=0A>=A0