You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-issues@hadoop.apache.org by "Abraham Elmahrek (JIRA)" <ji...@apache.org> on 2014/06/10 23:51:01 UTC

[jira] [Updated] (MAPREDUCE-5914) Writables are not configured by framework

     [ https://issues.apache.org/jira/browse/MAPREDUCE-5914?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Abraham Elmahrek updated MAPREDUCE-5914:
----------------------------------------

    Attachment: MAPREDUCE-5914.0.patch

Closing review board post and attached patch.

> Writables are not configured by framework
> -----------------------------------------
>
>                 Key: MAPREDUCE-5914
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5914
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>    Affects Versions: 2.4.0
>            Reporter: Abraham Elmahrek
>         Attachments: MAPREDUCE-5914.0.patch
>
>
> Seeing the following exception:
> {noformat}
> 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.sqoop.job.io.SqoopWritable.readFields(SqoopWritable.java:59)
> 	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)
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 	at java.lang.Thread.run(Thread.java:744)
> {noformat}
> It turns out that WritableComparator does not configure Writable objects :https://github.com/apache/hadoop-common/blob/branch-2.3.0/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/WritableComparator.java. This is during the sort phase for an MR job.



--
This message was sent by Atlassian JIRA
(v6.2#6252)