hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stan Rosenberg <srosenb...@proclivitysystems.com>
Subject Re: WritableComparable
Date Tue, 16 Aug 2011 14:20:05 GMT
On Tue, Aug 16, 2011 at 6:14 AM, Chris White <chriswhite199@gmail.com>wrote:

> Are you using a hash partioner? If so make sure the hash value of the
> writable is not calculated using the hashCode value of the enum - use the
> ordinal value instead. The hashcode value of an enum is different for each
> jvm.

Thanks for the tip. I am using a hash partitioner (its the default) but my
hash value is not based
on an enum value.  In any case, the keys in question get hashed to the same



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message