Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
2.0.0-alpha
-
Reviewed
Description
Currently, if the provided Key/Value class lacks a proper serializer in the loaded config for the SequenceFile.Writer, we get an NPE as the null return goes unchecked.
Hence we get:
java.lang.NullPointerException at org.apache.hadoop.io.SequenceFile$Writer.init(SequenceFile.java:1163) at org.apache.hadoop.io.SequenceFile$Writer.<init>(SequenceFile.java:1079) at org.apache.hadoop.io.SequenceFile$RecordCompressWriter.<init>(SequenceFile.java:1331) at org.apache.hadoop.io.SequenceFile.createWriter(SequenceFile.java:271)
We can provide a better message + exception in such cases. This is slightly related to MAPREDUCE-2584.
Attachments
Attachments
Issue Links
- relates to
-
MAPREDUCE-2584 Check for serializers early, and give out more information regarding missing serializers
- Resolved