You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by bharath vissapragada <bh...@students.iiit.ac.in> on 2009/07/07 19:43:30 UTC

Adding a row to an hbase table

Hi all,

Im new to hbase API .. can anyone tell me how to add a "row" to an existing
hbase table .
I saw Batchupdate class which only modifies existing "rows". i also checked
out Htable and HBaseAdmin class and im clueless.

kindly bear my doubt and please reply. Its kinda urgent.

Thanks in advance

Re: Adding a row to an hbase table

Posted by Erik Holstad <er...@gmail.com>.
You have probably managed to create your rows by now, but just wanted to say
that the only thing you need to specify or create in advance,
before putting data into HBase are the families for the table. When that is
done you can just start adding data to it.

Regards Erik

Re: how to get all row keys in python API?

Posted by stack <st...@duboce.net>.
On Fri, Sep 4, 2009 at 2:55 PM, Roldano Cattoni <ca...@fbk.eu> wrote:

> Hi all
>
> I am new to the thift-generated  python API to Hbase.
> Is there a method to get the list of all the row keys of a given table?
> I wouldn't like to scan all the columns to get them.
> Ot should I store them separately to get them quickly?
>
>
There is no way to get keys without their attendant values -- even if you go
via the thrift api.
St.Ack

how to get all row keys in python API?

Posted by Roldano Cattoni <ca...@fbk.eu>.
Hi all

I am new to the thift-generated  python API to Hbase.
Is there a method to get the list of all the row keys of a given table?
I wouldn't like to scan all the columns to get them.
Ot should I store them separately to get them quickly?

Many thanks in advance

  Roldano

----------------------------------------------------------
                  Dr. Roldano Cattoni
               FBK  Fondazione Bruno Kessler 
               (formerly ITC-irst)
               Via Sommarive 18
               Povo, 38123 Trento, Italy
               e-mail: cattoni@fbk.eu
               URL:    http://hlt.fbk.eu/people/cattoni/
----------------------------------------------------------

Re: Adding a row to an hbase table

Posted by Ishaaq Chandy <is...@gmail.com>.
"myrow" is just the row identifier, it could really be String (or byte[])
that uniquely identifies the row. When creating a new row you choose your
own identifier. This identifier should be guaranteed to be unique - as to
what it is - that would depend on your domain model.

I use UUIDs - which are virtually unique for all practical purposes.

Ishaaq


bharath vissapragada-2 wrote:
> 
> Yes i saw that example previously but i was confused from the explanation
> given there . In that example i felt that "myRow"  already exists in the
> table and a new columngroup is added to it . Then i got the doubt that how
> did he add that row previoulsy(i mean using what class)..
> 
> On Wed, Jul 8, 2009 at 9:40 AM, stack <st...@duboce.net> wrote:
> 
>> Yes.   See example code here:
>>
>> http://hadoop.apache.org/hbase/docs/r0.19.3/api/overview-summary.html#overview_description
>> St.Ack
>>
>> On Tue, Jul 7, 2009 at 9:02 PM, bharath vissapragada <
>> bharathvissapragada1990@gmail.com> wrote:
>>
>> > you mean that we can directly use BatchUpdate class and insert columns
>> > directly?
>> >
>> > On Tue, Jul 7, 2009 at 11:44 PM, Jonathan Gray <jl...@streamy.com>
>> wrote:
>> >
>> > > You don't have to add a row.  A row exists once you insert a column
>> for
>> > it.
>> > >
>> > > Check out the BigTable paper and HBase Architecture docs for more
>> > > information.
>> > >
>> > > JG
>> > >
>> > >
>> > > bharath vissapragada wrote:
>> > >
>> > >> Hi all,
>> > >>
>> > >> Im new to hbase API .. can anyone tell me how to add a "row" to an
>> > >> existing
>> > >> hbase table .
>> > >> I saw Batchupdate class which only modifies existing "rows". i also
>> > >> checked
>> > >> out Htable and HBaseAdmin class and im clueless.
>> > >>
>> > >> kindly bear my doubt and please reply. Its kinda urgent.
>> > >>
>> > >> Thanks in advance
>> > >>
>> > >>
>> >
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Adding-a-row-to-an-hbase-table-tp24378216p24385588.html
Sent from the HBase User mailing list archive at Nabble.com.


Re: Adding a row to an hbase table

Posted by bharath vissapragada <bh...@gmail.com>.
Yes i saw that example previously but i was confused from the explanation
given there . In that example i felt that "myRow"  already exists in the
table and a new columngroup is added to it . Then i got the doubt that how
did he add that row previoulsy(i mean using what class)..

On Wed, Jul 8, 2009 at 9:40 AM, stack <st...@duboce.net> wrote:

> Yes.   See example code here:
>
> http://hadoop.apache.org/hbase/docs/r0.19.3/api/overview-summary.html#overview_description
> St.Ack
>
> On Tue, Jul 7, 2009 at 9:02 PM, bharath vissapragada <
> bharathvissapragada1990@gmail.com> wrote:
>
> > you mean that we can directly use BatchUpdate class and insert columns
> > directly?
> >
> > On Tue, Jul 7, 2009 at 11:44 PM, Jonathan Gray <jl...@streamy.com>
> wrote:
> >
> > > You don't have to add a row.  A row exists once you insert a column for
> > it.
> > >
> > > Check out the BigTable paper and HBase Architecture docs for more
> > > information.
> > >
> > > JG
> > >
> > >
> > > bharath vissapragada wrote:
> > >
> > >> Hi all,
> > >>
> > >> Im new to hbase API .. can anyone tell me how to add a "row" to an
> > >> existing
> > >> hbase table .
> > >> I saw Batchupdate class which only modifies existing "rows". i also
> > >> checked
> > >> out Htable and HBaseAdmin class and im clueless.
> > >>
> > >> kindly bear my doubt and please reply. Its kinda urgent.
> > >>
> > >> Thanks in advance
> > >>
> > >>
> >
>

Re: Adding a row to an hbase table

Posted by stack <st...@duboce.net>.
Yes.   See example code here:
http://hadoop.apache.org/hbase/docs/r0.19.3/api/overview-summary.html#overview_description
St.Ack

On Tue, Jul 7, 2009 at 9:02 PM, bharath vissapragada <
bharathvissapragada1990@gmail.com> wrote:

> you mean that we can directly use BatchUpdate class and insert columns
> directly?
>
> On Tue, Jul 7, 2009 at 11:44 PM, Jonathan Gray <jl...@streamy.com> wrote:
>
> > You don't have to add a row.  A row exists once you insert a column for
> it.
> >
> > Check out the BigTable paper and HBase Architecture docs for more
> > information.
> >
> > JG
> >
> >
> > bharath vissapragada wrote:
> >
> >> Hi all,
> >>
> >> Im new to hbase API .. can anyone tell me how to add a "row" to an
> >> existing
> >> hbase table .
> >> I saw Batchupdate class which only modifies existing "rows". i also
> >> checked
> >> out Htable and HBaseAdmin class and im clueless.
> >>
> >> kindly bear my doubt and please reply. Its kinda urgent.
> >>
> >> Thanks in advance
> >>
> >>
>

Re: Adding a row to an hbase table

Posted by bharath vissapragada <bh...@gmail.com>.
you mean that we can directly use BatchUpdate class and insert columns
directly?

On Tue, Jul 7, 2009 at 11:44 PM, Jonathan Gray <jl...@streamy.com> wrote:

> You don't have to add a row.  A row exists once you insert a column for it.
>
> Check out the BigTable paper and HBase Architecture docs for more
> information.
>
> JG
>
>
> bharath vissapragada wrote:
>
>> Hi all,
>>
>> Im new to hbase API .. can anyone tell me how to add a "row" to an
>> existing
>> hbase table .
>> I saw Batchupdate class which only modifies existing "rows". i also
>> checked
>> out Htable and HBaseAdmin class and im clueless.
>>
>> kindly bear my doubt and please reply. Its kinda urgent.
>>
>> Thanks in advance
>>
>>

Re: Adding a row to an hbase table

Posted by Jonathan Gray <jl...@streamy.com>.
You don't have to add a row.  A row exists once you insert a column for it.

Check out the BigTable paper and HBase Architecture docs for more 
information.

JG

bharath vissapragada wrote:
> Hi all,
> 
> Im new to hbase API .. can anyone tell me how to add a "row" to an existing
> hbase table .
> I saw Batchupdate class which only modifies existing "rows". i also checked
> out Htable and HBaseAdmin class and im clueless.
> 
> kindly bear my doubt and please reply. Its kinda urgent.
> 
> Thanks in advance
>