hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HDFS-1258) Clearing namespace quota on "/" corrupts FS image
Date Tue, 22 Jun 2010 22:24:55 GMT

    [ https://issues.apache.org/jira/browse/HDFS-1258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12881410#action_12881410
] 

Tsz Wo (Nicholas), SZE commented on HDFS-1258:
----------------------------------------------

Unfortunately, this seems true.
# start hdfs
# put a file
# clear / quota
# restart namenode
{noformat}
2010-06-22 22:22:16,337 ERROR org.apache.hadoop.hdfs.server.namenode.FSNamesystem: FSNamesystem
initialization failed.
java.io.EOFException
        at java.io.DataInputStream.readFully(DataInputStream.java:180)
        at org.apache.hadoop.io.UTF8.readFields(UTF8.java:106)
        at org.apache.hadoop.hdfs.server.namenode.FSImage.readBytes(FSImage.java:1588)
        at org.apache.hadoop.hdfs.server.namenode.FSImage.readINodeUnderConstruction(FSImage.java:1227)
        at org.apache.hadoop.hdfs.server.namenode.FSImage.loadFilesUnderConstruction(FSImage.java:1205)
        at org.apache.hadoop.hdfs.server.namenode.FSImage.loadFSImage(FSImage.java:959)
        at org.apache.hadoop.hdfs.server.namenode.FSImage.loadFSImage(FSImage.java:807)
        at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:364)
        at org.apache.hadoop.hdfs.server.namenode.FSDirectory.loadFSImage(FSDirectory.java:87)
        at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.initialize(FSNamesystem.java:303)
        at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.<init>(FSNamesystem.java:284)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:201)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:279)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:956)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:965)
2010-06-22 22:22:16,338 INFO org.apache.hadoop.ipc.Server: Stopping server on 9000
2010-06-22 22:22:16,339 ERROR org.apache.hadoop.hdfs.server.namenode.NameNode: java.io.EOFException
        at java.io.DataInputStream.readFully(DataInputStream.java:180)
        at org.apache.hadoop.io.UTF8.readFields(UTF8.java:106)
        at org.apache.hadoop.hdfs.server.namenode.FSImage.readBytes(FSImage.java:1588)
        at org.apache.hadoop.hdfs.server.namenode.FSImage.readINodeUnderConstruction(FSImage.java:1227)
        at org.apache.hadoop.hdfs.server.namenode.FSImage.loadFilesUnderConstruction(FSImage.java:1205)
        at org.apache.hadoop.hdfs.server.namenode.FSImage.loadFSImage(FSImage.java:959)
        at org.apache.hadoop.hdfs.server.namenode.FSImage.loadFSImage(FSImage.java:807)
        at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:364)
        at org.apache.hadoop.hdfs.server.namenode.FSDirectory.loadFSImage(FSDirectory.java:87)
        at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.initialize(FSNamesystem.java:303)
        at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.<init>(FSNamesystem.java:284)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:201)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:279)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:956)
        at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:965)
{noformat}


> Clearing namespace quota on "/" corrupts FS image
> -------------------------------------------------
>
>                 Key: HDFS-1258
>                 URL: https://issues.apache.org/jira/browse/HDFS-1258
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>            Reporter: Aaron T. Myers
>            Priority: Blocker
>             Fix For: 0.20.3, 0.21.0, 0.22.0
>
>
> The HDFS root directory starts out with a default namespace quota of Integer.MAX_VALUE.
If you clear this quota (using "hadoop dfsadmin -clrQuota /"), the fsimage gets corrupted
immediately. Subsequent 2NN rolls will fail, and the NN will not come back up from a restart.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message