hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aditya Kumar <>
Subject Re: Hive Basic question
Date Tue, 13 Dec 2011 05:56:29 GMT
no luck..

here is the Error I am getting:

    > CREATE TABLE hbase_table_1(key int, event string)
    > STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
    > WITH SERDEPROPERTIES ("hbase.columns.mapping" = ":key,cf1:val")
FAILED: Error in metadata: MetaException(message:Table USER_DETAILS already exists within
HBase; use CREATE EXTERNAL TABLE instead to register it in Hive.)
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask.

I dont want to create a external table ..but to access the data from hbase

From: Abhishek Pratap Singh <>
To: Aditya Kumar <> 
Cc: "" <> 
Sent: Monday, December 12, 2011 9:44 PM
Subject: Re: Hive Basic question

it will work, as you will provide the Serde properties related to HBase. Just create the hive
table, map it with HBase table and try to access it.


On Tue, Dec 13, 2011 at 12:41 AM, Aditya Kumar <> wrote:

>Thanks Abhishek for the response.
>I did see that link but that is telling more creating HIVE table and than check in HBAse.
>my case is I have the data in tables in Hbase. i can view them in HBase.
>but want to do access them from HIVE.
>btn I am new to Hadoop world.
>Can yoyu pl let me know if I am missing anything and how to proceed
>From: Abhishek Pratap Singh <>
>To:; Aditya Kumar <>
>Sent: Monday, December 12, 2011 9:32 PM
>Subject: Re: Hive Basic question
>Here you go, check this link
>On Tue, Dec 13, 2011 at 12:30 AM, Aditya Kumar <> wrote:
>>I have a Hbase table that I am able to insert data and do scan.
>>I want to have use HIVE,.
>>I was able to install HIVE and login to Hive Console.
>>Can you please tell me the way I can access the HBASE Table fgrom HIVE.
>>I want to use HQL Commands on HBase table...
>>please let me know how to do that .
>>Thanks in Advance

View raw message