You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by praba karan <pr...@gmail.com> on 2011/02/15 17:57:01 UTC
Re:Need unique RowID in the Hbase table
Hi,
I am having the Map Reduce program for the uploading the Bulk data into the
Hbase-0.89 from HDFS file system. I need unique row ID for every row
(millions of rows). So that overwriting in the hbase table is to be avoided.
Any solution to overcome the Row ID problem without overwriting in the Hbase
table?
Regards
Jason
Re: Need unique RowID in the Hbase table
Posted by praba karan <pr...@gmail.com>.
Thanks Everyone. I used UUID, Thats working fine
Regards
Jason
On Wed, Feb 16, 2011 at 12:28 AM, Jason <ur...@gmail.com> wrote:
> Or based on int/long:
>
> ID[i]=ID[i-1]+N
> ID[0]=n
>
> N - number of mappers or reducers in whi ids are generated
> n - task id
>
>
> Sent from my iPhone 4
>
> On Feb 15, 2011, at 10:26 AM, Ryan Rawson <ry...@gmail.com> wrote:
>
> > Or the natural business key?
> > On Feb 15, 2011 10:00 AM, "Jean-Daniel Cryans" <jd...@apache.org>
> wrote:
> >> Try UUIDs.
> >>
> >> J-D
> >>
> >> On Tue, Feb 15, 2011 at 8:57 AM, praba karan <pr...@gmail.com>
> wrote:
> >>> Hi,
> >>>
> >>> I am having the Map Reduce program for the uploading the Bulk data into
> > the
> >>> Hbase-0.89 from HDFS file system. I need unique row ID for every row
> >>> (millions of rows). So that overwriting in the hbase table is to be
> > avoided.
> >>> Any solution to overcome the Row ID problem without overwriting in the
> > Hbase
> >>> table?
> >>>
> >>>
> >>>
> >>> Regards
> >>> Jason
> >>>
>
Re: Need unique RowID in the Hbase table
Posted by Jason <ur...@gmail.com>.
Or based on int/long:
ID[i]=ID[i-1]+N
ID[0]=n
N - number of mappers or reducers in whi ids are generated
n - task id
Sent from my iPhone 4
On Feb 15, 2011, at 10:26 AM, Ryan Rawson <ry...@gmail.com> wrote:
> Or the natural business key?
> On Feb 15, 2011 10:00 AM, "Jean-Daniel Cryans" <jd...@apache.org> wrote:
>> Try UUIDs.
>>
>> J-D
>>
>> On Tue, Feb 15, 2011 at 8:57 AM, praba karan <pr...@gmail.com> wrote:
>>> Hi,
>>>
>>> I am having the Map Reduce program for the uploading the Bulk data into
> the
>>> Hbase-0.89 from HDFS file system. I need unique row ID for every row
>>> (millions of rows). So that overwriting in the hbase table is to be
> avoided.
>>> Any solution to overcome the Row ID problem without overwriting in the
> Hbase
>>> table?
>>>
>>>
>>>
>>> Regards
>>> Jason
>>>
Re: Need unique RowID in the Hbase table
Posted by Ryan Rawson <ry...@gmail.com>.
Or the natural business key?
On Feb 15, 2011 10:00 AM, "Jean-Daniel Cryans" <jd...@apache.org> wrote:
> Try UUIDs.
>
> J-D
>
> On Tue, Feb 15, 2011 at 8:57 AM, praba karan <pr...@gmail.com> wrote:
>> Hi,
>>
>> I am having the Map Reduce program for the uploading the Bulk data into
the
>> Hbase-0.89 from HDFS file system. I need unique row ID for every row
>> (millions of rows). So that overwriting in the hbase table is to be
avoided.
>> Any solution to overcome the Row ID problem without overwriting in the
Hbase
>> table?
>>
>>
>>
>> Regards
>> Jason
>>
Re: Need unique RowID in the Hbase table
Posted by Jean-Daniel Cryans <jd...@apache.org>.
Try UUIDs.
J-D
On Tue, Feb 15, 2011 at 8:57 AM, praba karan <pr...@gmail.com> wrote:
> Hi,
>
> I am having the Map Reduce program for the uploading the Bulk data into the
> Hbase-0.89 from HDFS file system. I need unique row ID for every row
> (millions of rows). So that overwriting in the hbase table is to be avoided.
> Any solution to overcome the Row ID problem without overwriting in the Hbase
> table?
>
>
>
> Regards
> Jason
>