You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Koji Noguchi (JIRA)" <ji...@apache.org> on 2007/12/22 07:40:43 UTC
[jira] Created: (HADOOP-2486) Dropping records at reducer.
InMemoryFileSystem NPE.
Dropping records at reducer. InMemoryFileSystem NPE.
-----------------------------------------------------
Key: HADOOP-2486
URL: https://issues.apache.org/jira/browse/HADOOP-2486
Project: Hadoop
Issue Type: Bug
Components: mapred
Affects Versions: 0.14.3
Reporter: Koji Noguchi
Note: I'm really not sure if this is a bug in my code or in mapred.
With my mapreduce job without combiner, I sometimes see # of total Map output records != # of total Reduce input records. What's weird to me is, when I rerun my code with exact same input, usually I get an expected #map output recs == #reduce output recs.
Both jobs finish successfully. No failed tasks. No speculative execution.
I ran separate linecount mapred jobs on both the input and the output to see if the counters are reporting the correct number.
When I looked at all the 513 reducer counter, I found single reducer with different counts for the two runs.
Only error stood out in that reducer userlog is,
{noformat}
2007-12-22 00:19:07,640 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 done copying task_200712220008_0003_m_000288_0 output from qqq856.ppp.com.
2007-12-22 00:19:07,640 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 Copying task_200712220008_0003_m_000327_0 output from qqq887.ppp.com.
2007-12-22 00:19:07,640 ERROR org.apache.hadoop.mapred.ReduceTask: Map output copy failure: java.lang.NullPointerException
at org.apache.hadoop.fs.InMemoryFileSystem$RawInMemoryFileSystem$FileAttributes.access$300(InMemoryFileSystem.java:366)
at org.apache.hadoop.fs.InMemoryFileSystem$RawInMemoryFileSystem$InMemoryFileStatus.(InMemoryFileSystem.java:380)
at org.apache.hadoop.fs.InMemoryFileSystem$RawInMemoryFileSystem.getFileStatus(InMemoryFileSystem.java:283)
at org.apache.hadoop.fs.FileSystem.isDirectory(FileSystem.java:423)
at org.apache.hadoop.fs.ChecksumFileSystem.rename(ChecksumFileSystem.java:386)
at org.apache.hadoop.mapred.ReduceTask$ReduceCopier$MapOutputCopier.copyOutput(ReduceTask.java:716)
at org.apache.hadoop.mapred.ReduceTask$ReduceCopier$MapOutputCopier.run(ReduceTask.java:637)
2007-12-22 00:19:07,641 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 done copying task_200712220008_0003_m_000228_0 output from qqq801.ppp.com.
2007-12-22 00:19:07,641 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 Copying task_200712220008_0003_m_000337_0 output from qqq841.ppp.com.
{noformat}
Could this error be somehow related to my having different # of records?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (HADOOP-2486) Dropping records at reducer.
InMemoryFileSystem NPE.
Posted by "Devaraj Das (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-2486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Devaraj Das reassigned HADOOP-2486:
-----------------------------------
Assignee: Devaraj Das
> Dropping records at reducer. InMemoryFileSystem NPE.
> -----------------------------------------------------
>
> Key: HADOOP-2486
> URL: https://issues.apache.org/jira/browse/HADOOP-2486
> Project: Hadoop
> Issue Type: Bug
> Components: mapred
> Affects Versions: 0.14.3
> Reporter: Koji Noguchi
> Assignee: Devaraj Das
> Attachments: 2486.patch
>
>
> Note: I'm really not sure if this is a bug in my code or in mapred.
> With my mapreduce job without combiner, I sometimes see # of total Map output records != # of total Reduce input records. What's weird to me is, when I rerun my code with exact same input, usually I get an expected #map output recs == #reduce output recs.
> Both jobs finish successfully. No failed tasks. No speculative execution.
> I ran separate linecount mapred jobs on both the input and the output to see if the counters are reporting the correct number.
> When I looked at all the 513 reducer counter, I found single reducer with different counts for the two runs.
> Only error stood out in that reducer userlog is,
> {noformat}
> 2007-12-22 00:19:07,640 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 done copying task_200712220008_0003_m_000288_0 output from qqq856.ppp.com.
> 2007-12-22 00:19:07,640 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 Copying task_200712220008_0003_m_000327_0 output from qqq887.ppp.com.
> 2007-12-22 00:19:07,640 ERROR org.apache.hadoop.mapred.ReduceTask: Map output copy failure: java.lang.NullPointerException
> at org.apache.hadoop.fs.InMemoryFileSystem$RawInMemoryFileSystem$FileAttributes.access$300(InMemoryFileSystem.java:366)
> at org.apache.hadoop.fs.InMemoryFileSystem$RawInMemoryFileSystem$InMemoryFileStatus.(InMemoryFileSystem.java:380)
> at org.apache.hadoop.fs.InMemoryFileSystem$RawInMemoryFileSystem.getFileStatus(InMemoryFileSystem.java:283)
> at org.apache.hadoop.fs.FileSystem.isDirectory(FileSystem.java:423)
> at org.apache.hadoop.fs.ChecksumFileSystem.rename(ChecksumFileSystem.java:386)
> at org.apache.hadoop.mapred.ReduceTask$ReduceCopier$MapOutputCopier.copyOutput(ReduceTask.java:716)
> at org.apache.hadoop.mapred.ReduceTask$ReduceCopier$MapOutputCopier.run(ReduceTask.java:637)
> 2007-12-22 00:19:07,641 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 done copying task_200712220008_0003_m_000228_0 output from qqq801.ppp.com.
> 2007-12-22 00:19:07,641 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 Copying task_200712220008_0003_m_000337_0 output from qqq841.ppp.com.
> {noformat}
> Could this error be somehow related to my having different # of records?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HADOOP-2486) Dropping records at reducer.
InMemoryFileSystem NPE.
Posted by "Devaraj Das (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-2486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Devaraj Das updated HADOOP-2486:
--------------------------------
Status: Patch Available (was: Open)
> Dropping records at reducer. InMemoryFileSystem NPE.
> -----------------------------------------------------
>
> Key: HADOOP-2486
> URL: https://issues.apache.org/jira/browse/HADOOP-2486
> Project: Hadoop
> Issue Type: Bug
> Components: mapred
> Affects Versions: 0.14.3
> Reporter: Koji Noguchi
> Attachments: 2486.patch
>
>
> Note: I'm really not sure if this is a bug in my code or in mapred.
> With my mapreduce job without combiner, I sometimes see # of total Map output records != # of total Reduce input records. What's weird to me is, when I rerun my code with exact same input, usually I get an expected #map output recs == #reduce output recs.
> Both jobs finish successfully. No failed tasks. No speculative execution.
> I ran separate linecount mapred jobs on both the input and the output to see if the counters are reporting the correct number.
> When I looked at all the 513 reducer counter, I found single reducer with different counts for the two runs.
> Only error stood out in that reducer userlog is,
> {noformat}
> 2007-12-22 00:19:07,640 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 done copying task_200712220008_0003_m_000288_0 output from qqq856.ppp.com.
> 2007-12-22 00:19:07,640 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 Copying task_200712220008_0003_m_000327_0 output from qqq887.ppp.com.
> 2007-12-22 00:19:07,640 ERROR org.apache.hadoop.mapred.ReduceTask: Map output copy failure: java.lang.NullPointerException
> at org.apache.hadoop.fs.InMemoryFileSystem$RawInMemoryFileSystem$FileAttributes.access$300(InMemoryFileSystem.java:366)
> at org.apache.hadoop.fs.InMemoryFileSystem$RawInMemoryFileSystem$InMemoryFileStatus.(InMemoryFileSystem.java:380)
> at org.apache.hadoop.fs.InMemoryFileSystem$RawInMemoryFileSystem.getFileStatus(InMemoryFileSystem.java:283)
> at org.apache.hadoop.fs.FileSystem.isDirectory(FileSystem.java:423)
> at org.apache.hadoop.fs.ChecksumFileSystem.rename(ChecksumFileSystem.java:386)
> at org.apache.hadoop.mapred.ReduceTask$ReduceCopier$MapOutputCopier.copyOutput(ReduceTask.java:716)
> at org.apache.hadoop.mapred.ReduceTask$ReduceCopier$MapOutputCopier.run(ReduceTask.java:637)
> 2007-12-22 00:19:07,641 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 done copying task_200712220008_0003_m_000228_0 output from qqq801.ppp.com.
> 2007-12-22 00:19:07,641 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 Copying task_200712220008_0003_m_000337_0 output from qqq841.ppp.com.
> {noformat}
> Could this error be somehow related to my having different # of records?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-2486) Dropping records at reducer.
InMemoryFileSystem NPE.
Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-2486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554188 ]
Hadoop QA commented on HADOOP-2486:
-----------------------------------
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12372141/2486.patch
against trunk revision r606333.
@author +1. The patch does not contain any @author tags.
javadoc +1. The javadoc tool did not generate any warning messages.
javac +1. The applied patch does not generate any new compiler warnings.
findbugs +1. The patch does not introduce any new Findbugs warnings.
core tests +1. The patch passed core unit tests.
contrib tests -1. The patch failed contrib unit tests.
Test results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1423/testReport/
Findbugs warnings: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1423/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1423/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1423/console
This message is automatically generated.
> Dropping records at reducer. InMemoryFileSystem NPE.
> -----------------------------------------------------
>
> Key: HADOOP-2486
> URL: https://issues.apache.org/jira/browse/HADOOP-2486
> Project: Hadoop
> Issue Type: Bug
> Components: mapred
> Affects Versions: 0.14.3
> Reporter: Koji Noguchi
> Assignee: Devaraj Das
> Attachments: 2486.patch
>
>
> Note: I'm really not sure if this is a bug in my code or in mapred.
> With my mapreduce job without combiner, I sometimes see # of total Map output records != # of total Reduce input records. What's weird to me is, when I rerun my code with exact same input, usually I get an expected #map output recs == #reduce output recs.
> Both jobs finish successfully. No failed tasks. No speculative execution.
> I ran separate linecount mapred jobs on both the input and the output to see if the counters are reporting the correct number.
> When I looked at all the 513 reducer counter, I found single reducer with different counts for the two runs.
> Only error stood out in that reducer userlog is,
> {noformat}
> 2007-12-22 00:19:07,640 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 done copying task_200712220008_0003_m_000288_0 output from qqq856.ppp.com.
> 2007-12-22 00:19:07,640 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 Copying task_200712220008_0003_m_000327_0 output from qqq887.ppp.com.
> 2007-12-22 00:19:07,640 ERROR org.apache.hadoop.mapred.ReduceTask: Map output copy failure: java.lang.NullPointerException
> at org.apache.hadoop.fs.InMemoryFileSystem$RawInMemoryFileSystem$FileAttributes.access$300(InMemoryFileSystem.java:366)
> at org.apache.hadoop.fs.InMemoryFileSystem$RawInMemoryFileSystem$InMemoryFileStatus.(InMemoryFileSystem.java:380)
> at org.apache.hadoop.fs.InMemoryFileSystem$RawInMemoryFileSystem.getFileStatus(InMemoryFileSystem.java:283)
> at org.apache.hadoop.fs.FileSystem.isDirectory(FileSystem.java:423)
> at org.apache.hadoop.fs.ChecksumFileSystem.rename(ChecksumFileSystem.java:386)
> at org.apache.hadoop.mapred.ReduceTask$ReduceCopier$MapOutputCopier.copyOutput(ReduceTask.java:716)
> at org.apache.hadoop.mapred.ReduceTask$ReduceCopier$MapOutputCopier.run(ReduceTask.java:637)
> 2007-12-22 00:19:07,641 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 done copying task_200712220008_0003_m_000228_0 output from qqq801.ppp.com.
> 2007-12-22 00:19:07,641 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 Copying task_200712220008_0003_m_000337_0 output from qqq841.ppp.com.
> {noformat}
> Could this error be somehow related to my having different # of records?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-2486) Dropping records at reducer.
InMemoryFileSystem NPE.
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-2486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554419 ]
Hudson commented on HADOOP-2486:
--------------------------------
Integrated in Hadoop-Nightly #346 (See [http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Nightly/346/])
> Dropping records at reducer. InMemoryFileSystem NPE.
> -----------------------------------------------------
>
> Key: HADOOP-2486
> URL: https://issues.apache.org/jira/browse/HADOOP-2486
> Project: Hadoop
> Issue Type: Bug
> Components: mapred
> Affects Versions: 0.14.3
> Reporter: Koji Noguchi
> Assignee: Devaraj Das
> Priority: Blocker
> Fix For: 0.15.2
>
> Attachments: 2486.patch
>
>
> Note: I'm really not sure if this is a bug in my code or in mapred.
> With my mapreduce job without combiner, I sometimes see # of total Map output records != # of total Reduce input records. What's weird to me is, when I rerun my code with exact same input, usually I get an expected #map output recs == #reduce output recs.
> Both jobs finish successfully. No failed tasks. No speculative execution.
> I ran separate linecount mapred jobs on both the input and the output to see if the counters are reporting the correct number.
> When I looked at all the 513 reducer counter, I found single reducer with different counts for the two runs.
> Only error stood out in that reducer userlog is,
> {noformat}
> 2007-12-22 00:19:07,640 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 done copying task_200712220008_0003_m_000288_0 output from qqq856.ppp.com.
> 2007-12-22 00:19:07,640 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 Copying task_200712220008_0003_m_000327_0 output from qqq887.ppp.com.
> 2007-12-22 00:19:07,640 ERROR org.apache.hadoop.mapred.ReduceTask: Map output copy failure: java.lang.NullPointerException
> at org.apache.hadoop.fs.InMemoryFileSystem$RawInMemoryFileSystem$FileAttributes.access$300(InMemoryFileSystem.java:366)
> at org.apache.hadoop.fs.InMemoryFileSystem$RawInMemoryFileSystem$InMemoryFileStatus.(InMemoryFileSystem.java:380)
> at org.apache.hadoop.fs.InMemoryFileSystem$RawInMemoryFileSystem.getFileStatus(InMemoryFileSystem.java:283)
> at org.apache.hadoop.fs.FileSystem.isDirectory(FileSystem.java:423)
> at org.apache.hadoop.fs.ChecksumFileSystem.rename(ChecksumFileSystem.java:386)
> at org.apache.hadoop.mapred.ReduceTask$ReduceCopier$MapOutputCopier.copyOutput(ReduceTask.java:716)
> at org.apache.hadoop.mapred.ReduceTask$ReduceCopier$MapOutputCopier.run(ReduceTask.java:637)
> 2007-12-22 00:19:07,641 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 done copying task_200712220008_0003_m_000228_0 output from qqq801.ppp.com.
> 2007-12-22 00:19:07,641 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 Copying task_200712220008_0003_m_000337_0 output from qqq841.ppp.com.
> {noformat}
> Could this error be somehow related to my having different # of records?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HADOOP-2486) Dropping records at reducer.
InMemoryFileSystem NPE.
Posted by "Devaraj Das (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-2486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Devaraj Das updated HADOOP-2486:
--------------------------------
Resolution: Fixed
Status: Resolved (was: Patch Available)
I just committed this.
> Dropping records at reducer. InMemoryFileSystem NPE.
> -----------------------------------------------------
>
> Key: HADOOP-2486
> URL: https://issues.apache.org/jira/browse/HADOOP-2486
> Project: Hadoop
> Issue Type: Bug
> Components: mapred
> Affects Versions: 0.14.3
> Reporter: Koji Noguchi
> Assignee: Devaraj Das
> Priority: Blocker
> Fix For: 0.15.2
>
> Attachments: 2486.patch
>
>
> Note: I'm really not sure if this is a bug in my code or in mapred.
> With my mapreduce job without combiner, I sometimes see # of total Map output records != # of total Reduce input records. What's weird to me is, when I rerun my code with exact same input, usually I get an expected #map output recs == #reduce output recs.
> Both jobs finish successfully. No failed tasks. No speculative execution.
> I ran separate linecount mapred jobs on both the input and the output to see if the counters are reporting the correct number.
> When I looked at all the 513 reducer counter, I found single reducer with different counts for the two runs.
> Only error stood out in that reducer userlog is,
> {noformat}
> 2007-12-22 00:19:07,640 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 done copying task_200712220008_0003_m_000288_0 output from qqq856.ppp.com.
> 2007-12-22 00:19:07,640 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 Copying task_200712220008_0003_m_000327_0 output from qqq887.ppp.com.
> 2007-12-22 00:19:07,640 ERROR org.apache.hadoop.mapred.ReduceTask: Map output copy failure: java.lang.NullPointerException
> at org.apache.hadoop.fs.InMemoryFileSystem$RawInMemoryFileSystem$FileAttributes.access$300(InMemoryFileSystem.java:366)
> at org.apache.hadoop.fs.InMemoryFileSystem$RawInMemoryFileSystem$InMemoryFileStatus.(InMemoryFileSystem.java:380)
> at org.apache.hadoop.fs.InMemoryFileSystem$RawInMemoryFileSystem.getFileStatus(InMemoryFileSystem.java:283)
> at org.apache.hadoop.fs.FileSystem.isDirectory(FileSystem.java:423)
> at org.apache.hadoop.fs.ChecksumFileSystem.rename(ChecksumFileSystem.java:386)
> at org.apache.hadoop.mapred.ReduceTask$ReduceCopier$MapOutputCopier.copyOutput(ReduceTask.java:716)
> at org.apache.hadoop.mapred.ReduceTask$ReduceCopier$MapOutputCopier.run(ReduceTask.java:637)
> 2007-12-22 00:19:07,641 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 done copying task_200712220008_0003_m_000228_0 output from qqq801.ppp.com.
> 2007-12-22 00:19:07,641 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 Copying task_200712220008_0003_m_000337_0 output from qqq841.ppp.com.
> {noformat}
> Could this error be somehow related to my having different # of records?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HADOOP-2486) Dropping records at reducer.
InMemoryFileSystem NPE.
Posted by "Koji Noguchi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-2486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554090 ]
Koji Noguchi commented on HADOOP-2486:
--------------------------------------
Here are the counters from the two run.
First ====
Counter Map Reduce Total
Job Counters Launched map tasks 0 0 512
Launched reduce tasks 0 0 60
Data-local map tasks 0 0 41
Map-Reduce Framework Map input records 311,740,575 0 311,740,575
Map output records *311,740,575* 0 311,740,575
Map input bytes 41,488,968,916 0 41,488,968,916
Map output bytes 129,088,071,619 0 129,088,071,619
Reduce input groups 0 53,332,945 53,332,945
Reduce input records 0 *311,680,380* 311,680,380
Reduce output records 0 311,680,380 311,680,380
Second.====
Counter Map Reduce Total
Job Counters Launched map tasks 0 0 512
Launched reduce tasks 0 0 60
Data-local map tasks 0 0 42
Map-Reduce Framework Map input records 311,740,575 0 311,740,575
Map output records *311,740,575* 0 311,740,575
Map input bytes 41,488,968,916 0 41,488,968,916
Map output bytes 129,088,071,619 0 129,088,071,619
Reduce input groups 0 53,343,415 53,343,415
Reduce input records 0 *311,740,575* 311,740,575
Reduce output records 0 311,740,575 311,740,575
> Dropping records at reducer. InMemoryFileSystem NPE.
> -----------------------------------------------------
>
> Key: HADOOP-2486
> URL: https://issues.apache.org/jira/browse/HADOOP-2486
> Project: Hadoop
> Issue Type: Bug
> Components: mapred
> Affects Versions: 0.14.3
> Reporter: Koji Noguchi
>
> Note: I'm really not sure if this is a bug in my code or in mapred.
> With my mapreduce job without combiner, I sometimes see # of total Map output records != # of total Reduce input records. What's weird to me is, when I rerun my code with exact same input, usually I get an expected #map output recs == #reduce output recs.
> Both jobs finish successfully. No failed tasks. No speculative execution.
> I ran separate linecount mapred jobs on both the input and the output to see if the counters are reporting the correct number.
> When I looked at all the 513 reducer counter, I found single reducer with different counts for the two runs.
> Only error stood out in that reducer userlog is,
> {noformat}
> 2007-12-22 00:19:07,640 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 done copying task_200712220008_0003_m_000288_0 output from qqq856.ppp.com.
> 2007-12-22 00:19:07,640 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 Copying task_200712220008_0003_m_000327_0 output from qqq887.ppp.com.
> 2007-12-22 00:19:07,640 ERROR org.apache.hadoop.mapred.ReduceTask: Map output copy failure: java.lang.NullPointerException
> at org.apache.hadoop.fs.InMemoryFileSystem$RawInMemoryFileSystem$FileAttributes.access$300(InMemoryFileSystem.java:366)
> at org.apache.hadoop.fs.InMemoryFileSystem$RawInMemoryFileSystem$InMemoryFileStatus.(InMemoryFileSystem.java:380)
> at org.apache.hadoop.fs.InMemoryFileSystem$RawInMemoryFileSystem.getFileStatus(InMemoryFileSystem.java:283)
> at org.apache.hadoop.fs.FileSystem.isDirectory(FileSystem.java:423)
> at org.apache.hadoop.fs.ChecksumFileSystem.rename(ChecksumFileSystem.java:386)
> at org.apache.hadoop.mapred.ReduceTask$ReduceCopier$MapOutputCopier.copyOutput(ReduceTask.java:716)
> at org.apache.hadoop.mapred.ReduceTask$ReduceCopier$MapOutputCopier.run(ReduceTask.java:637)
> 2007-12-22 00:19:07,641 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 done copying task_200712220008_0003_m_000228_0 output from qqq801.ppp.com.
> 2007-12-22 00:19:07,641 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 Copying task_200712220008_0003_m_000337_0 output from qqq841.ppp.com.
> {noformat}
> Could this error be somehow related to my having different # of records?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HADOOP-2486) Dropping records at reducer.
InMemoryFileSystem NPE.
Posted by "Devaraj Das (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-2486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Devaraj Das updated HADOOP-2486:
--------------------------------
Attachment: 2486.patch
Thanks Koji for this excellent bug report! I found a problem. Here's the scenario:
Thread1:
1) The ramfs merge thread is waiting to do InMemoryFileSystem.getFiles()
Thread2:
1) The ReduceTask locks itself.
2) It invokes rename for a file, F1, that it just shuffled, in the ramfs.
3) The rename in the ChecksumFileSystem gets called and finishes renaming the actual file but before it could not do rename of the checksum file, thread switch happened. Thread1 gets control.
Thread1:
2) It now calls InMemoryFileSystem.getFiles(), and initiates merge. In the process of merge, it deletes the ramfs file, F1. Note that the checksum file is optional and if it is not found, ChecksumFSInputChecker silently ignores it.
At some point later on, Thread2 gets control and tries to do rename of the checksum file and since the real file is not there anymore, the second call to isDirectory in ChecksumFileSystem.rename results in a NPE (as in the reported stack trace).
Attached is a patch that will address the above problem. Just makes the call to getFiles synchronized on the ReduceTask object.
> Dropping records at reducer. InMemoryFileSystem NPE.
> -----------------------------------------------------
>
> Key: HADOOP-2486
> URL: https://issues.apache.org/jira/browse/HADOOP-2486
> Project: Hadoop
> Issue Type: Bug
> Components: mapred
> Affects Versions: 0.14.3
> Reporter: Koji Noguchi
> Attachments: 2486.patch
>
>
> Note: I'm really not sure if this is a bug in my code or in mapred.
> With my mapreduce job without combiner, I sometimes see # of total Map output records != # of total Reduce input records. What's weird to me is, when I rerun my code with exact same input, usually I get an expected #map output recs == #reduce output recs.
> Both jobs finish successfully. No failed tasks. No speculative execution.
> I ran separate linecount mapred jobs on both the input and the output to see if the counters are reporting the correct number.
> When I looked at all the 513 reducer counter, I found single reducer with different counts for the two runs.
> Only error stood out in that reducer userlog is,
> {noformat}
> 2007-12-22 00:19:07,640 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 done copying task_200712220008_0003_m_000288_0 output from qqq856.ppp.com.
> 2007-12-22 00:19:07,640 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 Copying task_200712220008_0003_m_000327_0 output from qqq887.ppp.com.
> 2007-12-22 00:19:07,640 ERROR org.apache.hadoop.mapred.ReduceTask: Map output copy failure: java.lang.NullPointerException
> at org.apache.hadoop.fs.InMemoryFileSystem$RawInMemoryFileSystem$FileAttributes.access$300(InMemoryFileSystem.java:366)
> at org.apache.hadoop.fs.InMemoryFileSystem$RawInMemoryFileSystem$InMemoryFileStatus.(InMemoryFileSystem.java:380)
> at org.apache.hadoop.fs.InMemoryFileSystem$RawInMemoryFileSystem.getFileStatus(InMemoryFileSystem.java:283)
> at org.apache.hadoop.fs.FileSystem.isDirectory(FileSystem.java:423)
> at org.apache.hadoop.fs.ChecksumFileSystem.rename(ChecksumFileSystem.java:386)
> at org.apache.hadoop.mapred.ReduceTask$ReduceCopier$MapOutputCopier.copyOutput(ReduceTask.java:716)
> at org.apache.hadoop.mapred.ReduceTask$ReduceCopier$MapOutputCopier.run(ReduceTask.java:637)
> 2007-12-22 00:19:07,641 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 done copying task_200712220008_0003_m_000228_0 output from qqq801.ppp.com.
> 2007-12-22 00:19:07,641 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 Copying task_200712220008_0003_m_000337_0 output from qqq841.ppp.com.
> {noformat}
> Could this error be somehow related to my having different # of records?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HADOOP-2486) Dropping records at reducer.
InMemoryFileSystem NPE.
Posted by "Devaraj Das (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HADOOP-2486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Devaraj Das updated HADOOP-2486:
--------------------------------
Fix Version/s: 0.15.2
Priority: Blocker (was: Major)
> Dropping records at reducer. InMemoryFileSystem NPE.
> -----------------------------------------------------
>
> Key: HADOOP-2486
> URL: https://issues.apache.org/jira/browse/HADOOP-2486
> Project: Hadoop
> Issue Type: Bug
> Components: mapred
> Affects Versions: 0.14.3
> Reporter: Koji Noguchi
> Assignee: Devaraj Das
> Priority: Blocker
> Fix For: 0.15.2
>
> Attachments: 2486.patch
>
>
> Note: I'm really not sure if this is a bug in my code or in mapred.
> With my mapreduce job without combiner, I sometimes see # of total Map output records != # of total Reduce input records. What's weird to me is, when I rerun my code with exact same input, usually I get an expected #map output recs == #reduce output recs.
> Both jobs finish successfully. No failed tasks. No speculative execution.
> I ran separate linecount mapred jobs on both the input and the output to see if the counters are reporting the correct number.
> When I looked at all the 513 reducer counter, I found single reducer with different counts for the two runs.
> Only error stood out in that reducer userlog is,
> {noformat}
> 2007-12-22 00:19:07,640 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 done copying task_200712220008_0003_m_000288_0 output from qqq856.ppp.com.
> 2007-12-22 00:19:07,640 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 Copying task_200712220008_0003_m_000327_0 output from qqq887.ppp.com.
> 2007-12-22 00:19:07,640 ERROR org.apache.hadoop.mapred.ReduceTask: Map output copy failure: java.lang.NullPointerException
> at org.apache.hadoop.fs.InMemoryFileSystem$RawInMemoryFileSystem$FileAttributes.access$300(InMemoryFileSystem.java:366)
> at org.apache.hadoop.fs.InMemoryFileSystem$RawInMemoryFileSystem$InMemoryFileStatus.(InMemoryFileSystem.java:380)
> at org.apache.hadoop.fs.InMemoryFileSystem$RawInMemoryFileSystem.getFileStatus(InMemoryFileSystem.java:283)
> at org.apache.hadoop.fs.FileSystem.isDirectory(FileSystem.java:423)
> at org.apache.hadoop.fs.ChecksumFileSystem.rename(ChecksumFileSystem.java:386)
> at org.apache.hadoop.mapred.ReduceTask$ReduceCopier$MapOutputCopier.copyOutput(ReduceTask.java:716)
> at org.apache.hadoop.mapred.ReduceTask$ReduceCopier$MapOutputCopier.run(ReduceTask.java:637)
> 2007-12-22 00:19:07,641 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 done copying task_200712220008_0003_m_000228_0 output from qqq801.ppp.com.
> 2007-12-22 00:19:07,641 INFO org.apache.hadoop.mapred.ReduceTask: task_200712220008_0003_r_000024_0 Copying task_200712220008_0003_m_000337_0 output from qqq841.ppp.com.
> {noformat}
> Could this error be somehow related to my having different # of records?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.