You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Andrew Wang (JIRA)" <ji...@apache.org> on 2012/08/16 04:08:38 UTC
[jira] [Resolved] (HDFS-3780) NPE in DFSInputStream.read()
[ https://issues.apache.org/jira/browse/HDFS-3780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Wang resolved HDFS-3780.
-------------------------------
Resolution: Duplicate
Dup of HDFS-3774
> NPE in DFSInputStream.read()
> ----------------------------
>
> Key: HDFS-3780
> URL: https://issues.apache.org/jira/browse/HDFS-3780
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 2.0.0-alpha
> Environment: CDH4.0.1 using yarn, log aggregation
> Reporter: Till Machens
>
> Calling "yarn logs" on a running application results in a NPE:
> $ yarn logs -applicationId app_1344439655593_0002
> Exception in thread "main" java.lang.NullPointerException
> at org.apache.hadoop.hdfs.DFSInputStream.read(DFSInputStream.java:606)
> at java.io.DataInputStream.readFully(DataInputStream.java:178)
> at java.io.DataInputStream.readLong(DataInputStream.java:399)
> at org.apache.hadoop.io.file.tfile.BCFile$Reader.<init>(BCFile.java:623)
> at org.apache.hadoop.io.file.tfile.TFile$Reader.<init>(TFile.java:803)
> at org.apache.hadoop.yarn.logaggregation.AggregatedLogFormat$LogReader.<init>(AggregatedLogFormat.java:266)
> at org.apache.hadoop.yarn.logaggregation.LogDumper.dumpAllContainersLogs(LogDumper.java:209)
> at org.apache.hadoop.yarn.logaggregation.LogDumper.run(LogDumper.java:109)
> at org.apache.hadoop.yarn.logaggregation.LogDumper.main(LogDumper.java:242)
> Line numbers in the stack trace differ slightly from 2.0.0-alpha, due to the Cloudera patches, but the bug seems to have its origin here (patch for HDFS-1371: https://svn.apache.org/repos/asf/hadoop/hdfs/trunk@1125145).
> At first sight this seems to be a two layer problem:
> - yarn logs -- designed for finished apps only :( -- is looking for non-existing files here (?)
> - the used HDFS-implementation, which should report block replica corruptions here, but results in NPE instead
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira