Description
I am writing unit tests for ORC-715
There is a NullPointerException that cannot be passed
java.lang.Exception: java.lang.NullPointerException at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:403) Caused by: java.lang.NullPointerException at org.apache.orc.mapred.OrcKey.readFields(OrcKey.java:57) at org.apache.hadoop.io.WritableComparator.compare(WritableComparator.java:129) at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.compare(MapTask.java:1248) at org.apache.hadoop.util.QuickSort.fix(QuickSort.java:35) at org.apache.hadoop.util.QuickSort.sortInternal(QuickSort.java:87) at org.apache.hadoop.util.QuickSort.sort(QuickSort.java:63) at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.sortAndSpill(MapTask.java:1582) at org.apache.hadoop.mapred.MapTask$MapOutputBuffer.flush(MapTask.java:1467) at org.apache.hadoop.mapred.MapTask$NewOutputCollector.close(MapTask.java:699) at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:769) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:339) at org.apache.hadoop.mapred.LocalJobRunner$Job$MapTaskRunnable.run(LocalJobRunner.java:235)
The variable key inside OrcKey is not init. Analysis revealed a bug in hadoop-common that was fixed in version 2.5.0.
https://issues.apache.org/jira/browse/HADOOP-10686
https://github.com/apache/hadoop/commit/fc7c8f9bf2588fd25f8b457ee4a9b444e619519c
Do we need to change min.hadoop.version to the ORC-mapreduce module ?
Is there a remedy for this?
Attachments
Issue Links
- relates to
-
HADOOP-10686 Writables are not always configured
- Closed