Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CascadingHadoopTest fails with JsonMappingException: No serializer found for class org.apache.hadoop.io.NullWritable #33

Closed
tzolov opened this issue Apr 14, 2013 · 1 comment

Comments

@tzolov
Copy link

tzolov commented Apr 14, 2013

Current ObjectMapper configuration doesn't serialise null fields. The test data (artists.dat) contains empty fields that cause CascadingHadoopTest.testWriteToES() to fail with:

org.codehaus.jackson.map.JsonMappingException: No serializer found for class org.apache.hadoop.io.NullWritable

To make it work with the existing OM configuration the test needs to filter out all null-field entries before writing the index: fa62b72

pipe = new Each(pipe, 
   new Fields("id", "name", "url", "picture"), new FilterNull());

Related issues: #27, #30

@costin
Copy link
Member

costin commented Apr 18, 2013

The Writable -> Object conversion was not handled properly for cascading but this has now been addressed in master. Thanks for reporting it.

@costin costin closed this as completed Apr 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants