phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anil gupta <anilgupt...@gmail.com>
Subject Re: Importing existing HBase table's rowkey
Date Wed, 22 Jul 2015 17:50:17 GMT
Can you share your composite rowkey? Do you have strings in your rowkey?
Phoenix has a particular format for composite Rowkey with String.

On Tue, Jul 21, 2015 at 5:43 PM, Anchal Agrawal <anchal@yahoo-inc.com>
wrote:

> Hi,
>
> I'm trying to map an existing HBase table to Phoenix. Can the existing
> HBase table's rowkey be imported as the rowkey of the Phoenix table? On
> this page (
> https://phoenix.apache.org/faq.html#How_I_map_Phoenix_table_to_an_existing_HBase_table),
> there's an example:
>
> CREATE VIEW t1 ( pk VARCHAR PRIMARY KEY, f1.val VARCHAR )
>
> Here, is pk the HBase table's column that's being used as the primary
> key, or is it a Phoenix keyword/placeholder to refer to the HBase table's
> rowkey? My table's rowkey is made up of several fields that are not stored
> as columns in that table. If I could just import the rowkey into Phoenix,
> that'd be great.
>
> Thank you!
>
> Sincerely,
> Anchal
>



-- 
Thanks & Regards,
Anil Gupta

Mime
View raw message