Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BFF5CCF3D for ; Tue, 8 May 2012 18:54:11 +0000 (UTC) Received: (qmail 6586 invoked by uid 500); 8 May 2012 18:54:11 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 6522 invoked by uid 500); 8 May 2012 18:54:11 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 6510 invoked by uid 99); 8 May 2012 18:54:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2012 18:54:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2012 18:54:10 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 393F343A8DD for ; Tue, 8 May 2012 18:53:50 +0000 (UTC) Date: Tue, 8 May 2012 18:53:50 +0000 (UTC) From: "Tsz Wo (Nicholas), SZE (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1660668916.40366.1336503230235.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <762371078.38471.1336481153448.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HDFS-3385) ClassCastException when trying to append a file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HDFS-3385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tsz Wo (Nicholas), SZE updated HDFS-3385: ----------------------------------------- Attachment: h3385_20120508.patch The line numbers in the stack trace is off. If my guess is correct, the fix could be as simple as the following patch. h3385_20120508.patch > ClassCastException when trying to append a file > ----------------------------------------------- > > Key: HDFS-3385 > URL: https://issues.apache.org/jira/browse/HDFS-3385 > Project: Hadoop HDFS > Issue Type: Bug > Components: name-node > Affects Versions: 3.0.0 > Environment: HDFS > Reporter: Brahma Reddy Battula > Priority: Minor > Fix For: 3.0.0 > > Attachments: h3385_20120508.patch > > > When I try to append a file I got > {noformat} > 2012-05-08 18:13:40,506 WARN util.KerberosName (KerberosName.java:(87)) - Kerberos krb5 configuration not found, setting default realm to empty > Exception in thread "main" java.lang.ClassCastException: org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo cannot be cast to org.apache.hadoop.hdfs.server.blockmanagement.BlockInfoUnderConstruction > at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.recoverLeaseInternal(FSNamesystem.java:1787) > at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.startFileInternal(FSNamesystem.java:1584) > at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.appendFile(FSNamesystem.java:1824) > at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.append(NameNodeRpcServer.java:425) > ... > at org.apache.hadoop.hdfs.DFSClient.callAppend(DFSClient.java:1150) > at org.apache.hadoop.hdfs.DFSClient.append(DFSClient.java:1189) > at org.apache.hadoop.hdfs.DFSClient.append(DFSClient.java:1177) > at org.apache.hadoop.hdfs.DistributedFileSystem.append(DistributedFileSystem.java:221) > at org.apache.hadoop.hdfs.DistributedFileSystem.append(DistributedFileSystem.java:1) > at org.apache.hadoop.fs.FileSystem.append(FileSystem.java:981) > at org.apache.hadoop.hdfs.server.datanode.DeleteMe.main(DeleteMe.java:26) > {noformat} -- 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