Well that's embarrassing-- thanks for reporting it Tom! I created a JIRA for it:
https://issues.apache.org/jira/browse/CRUNCH-419 If you send me a pull request, I will take care of integrating it. Thanks again, Josh On Wed, Jun 11, 2014 at 3:03 AM, Tom De Leu <[email protected]> wrote: > Hi there, > > First of all, thanks for Crunch, as it makes working with Hadoop much > easier. > > Yesterday I tried upgrading our code to Crunch 0.8.3 (from 0.8.2). > > When running our tests, we got an error: "java.lang.IllegalStateException: > Unknown Writable code: 85". In our logs, I noticed a new warning: > > "WARN writable.Writables: WritableComparable class class x.y.z in tuple > type should be registered with Writables.registerComparable" > > So I added the call to Writables.registerComparable, but the same error > still occurred. > > I looked in the Crunch code and I think it's a bug, with a really simple > fix: > The registerComparable method is missing this line at the end: > > WRITABLE_CODES.put(code, clazz); > > Should I create a JIRA ticket? I can also create a pull request on Github > with a fix. > > Best regards, > Tom De Leu >
