crunch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josh Wills <josh.wi...@gmail.com>
Subject Re: Writables.registerComparable does not actually register the WritableComparable
Date Wed, 11 Jun 2014 15:29:53 GMT
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 <de.leu.tom@gmail.com> 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
>

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