Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> some problem about HBase index

Copy link to this message
Re: some problem about HBase index

Sorry but HBase *DOES* support composite keys.

The OP's question is can you create a row key that is comprised of both 'student' and 'student_id'.

I'm not going in to more detail because this sounds like a homework problem.

Composite rowkey and composite index are two different things, yet still related because the row key has an implied index.
Sent from a remote device. Please excuse any typos...

Mike Segel

On Jun 13, 2013, at 5:22 AM, rajeshbabu chintaguntla <[EMAIL PROTECTED]> wrote:

> HBase does not fully support composite keys.
> But you can use PrefixFilter and FuzzyRowFilter with some limitations if your query involves part of key.
> http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/filter/PrefixFilter.html
> http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/filter/FuzzyRowFilter.html
> Thanks,
> Rajeshbabu.
> ________________________________________
> From: fx_bull [[EMAIL PROTECTED]]
> Sent: Thursday, June 13, 2013 1:46 PM
> Subject: some problem about HBase index
> hello
>     If I have a table called 'student',  I want to  use both of  student number and student' name as  rowkey  to mark a student,
>    I want to verify can HBase support it  ,  and  if  it can, how should I do,
>                    Thanks!