Thomas Graves created YARN-205: ---------------------------------- Summary: yarn logs throws nullpointerexception for running application Key: YARN-205 URL: https://issues.apache.org/jira/browse/YARN-205 Project: Hadoop YARN Issue Type: Bug Components: client Affects Versions: 0.23.4 Reporter: Thomas Graves
I started an application and tried to look at the task logs for the takss that had finished via yarn logs. Unfortunately it throws a null pointer exception until the job finished: yarn logs -appOwner tgraves --applicationId application_1352316570518_0002 Exception in thread "main" java.lang.NullPointerException at org.apache.hadoop.hdfs.DFSInputStream.read(DFSInputStream.java:573) 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:293) 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) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira