Return-Path: X-Original-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 10965DB3C for ; Thu, 16 Aug 2012 02:08:40 +0000 (UTC) Received: (qmail 69235 invoked by uid 500); 16 Aug 2012 02:08:38 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 69109 invoked by uid 500); 16 Aug 2012 02:08:38 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 69093 invoked by uid 99); 16 Aug 2012 02:08:38 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2012 02:08:38 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 348152C5BE2 for ; Thu, 16 Aug 2012 02:08:38 +0000 (UTC) Date: Thu, 16 Aug 2012 13:08:38 +1100 (NCT) From: "Andrew Wang (JIRA)" To: hdfs-dev@hadoop.apache.org Message-ID: <752415184.17342.1345082918215.JavaMail.jiratomcat@arcas> Subject: [jira] [Resolved] (HDFS-3783) NPE in DFSInputStream MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-3783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Wang resolved HDFS-3783. ------------------------------- Resolution: Duplicate Dup of HDFS-3774 > NPE in DFSInputStream > --------------------- > > Key: HDFS-3783 > URL: https://issues.apache.org/jira/browse/HDFS-3783 > 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.(BCFile.java:623) > at org.apache.hadoop.io.file.tfile.TFile$Reader.(TFile.java:803) > at org.apache.hadoop.yarn.logaggregation.AggregatedLogFormat$LogReader.(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