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

Switch to Threaded View
HBase, mail # user - Determining the unqiue row keys for Hbase table

Copy link to this message
Re: Determining the unqiue row keys for Hbase table
Andrey Stepachev 2011-02-08, 21:03
You can use HTable.incrementColumnValue. Of cource you can increment in
steps (f.e. 100) and
reduce amount of rpc generetated by you MR jobs.

2011/2/7 som_shekhar <[EMAIL PROTECTED]>

> Hi All,
> I would like to know how to provide the unique row names for hbase table.
> Since if there are similar row keys then they will be overwritten in the
> hbase table.
> I am  writing the map reduce job which will read the file from the HDFS and
> will update the table in the mapper function only. for the time being i am
> not using  the reducer.
> if i append the session id with the row keys, then is it guarnteed to have
> the unique key?
> Regards,
> Shekhar
> --
> View this message in context:
> http://old.nabble.com/Determining-the-unqiue-row-keys-for-Hbase-table-tp30860983p30860983.html
> Sent from the HBase User mailing list archive at Nabble.com.