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

Switch to Threaded View
HDFS >> mail # user >> Re: incrCounter doesn't return a value

Copy link to this message
Re: incrCounter doesn't return a value
While I whole heartedly agree that it could be useful if counter would have
returned the incremented value, the purpose of coubter is not that.
Counters are used for counting incidence occurance.

I have not read through details ofvtge issue, but if you want to generate a
unique number, then there could be some otger time based mechanism, which
would make more sense.

On Aug 3, 2013 4:40 PM, "Rishi Yadav" <[EMAIL PROTECTED]> wrote:

> Hi Manish,
> Can you give some more details. You are accessing counter values from
> driver?
> On Wed, Jul 31, 2013 at 5:30 PM, Manish Verma <[EMAIL PROTECTED]>wrote:
>> Hi,
>> I wanted to use the incrCounter API to generate auto increment ids but
>> the problem is that it doesn't return the incremented value. Does anyone
>> know why this API does not return the incremented value? And whether it
>> would be possible to change it to return the incremented value?
>> Thanks
>> Manish V