Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-3385

ClassCastException when trying to append a file

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.2-alpha
    • namenode
    • None
    • HDFS

    • Reviewed

    Description

      When I try to append a file I got

      2012-05-08 18:13:40,506 WARN  util.KerberosName (KerberosName.java:<clinit>(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)
      

      Attachments

        1. h3385_20120508.patch
          0.9 kB
          Tsz-wo Sze
        2. h3385_20120509.patch
          5 kB
          Tsz-wo Sze

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            szetszwo Tsz-wo Sze
            brahmareddy Brahma Reddy Battula
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment