You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Lei Chen (JIRA)" <ji...@apache.org> on 2006/04/20 22:12:05 UTC

[jira] Created: (HADOOP-154) fsck fails when there is no file in dfs

fsck fails when there is no file in dfs
---------------------------------------

         Key: HADOOP-154
         URL: http://issues.apache.org/jira/browse/HADOOP-154
     Project: Hadoop
        Type: Bug

  Components: dfs  
    Versions: 0.1.1    
    Reporter: Lei Chen
    Priority: Trivial


First type in command
    
     hadoop namenode -format

Then 

     hadoop fsck /

Then is the following exception:

Exception in thread "main" java.lang.ArithmeticException: / by zero
        at org.apache.hadoop.dfs.DFSck$Result.toString(DFSck.java:563)
        at java.lang.String.valueOf(String.java:2577)
        at java.io.PrintStream.print(PrintStream.java:616)
        at java.io.PrintStream.println(PrintStream.java:753)
        at org.apache.hadoop.dfs.DFSck.main(DFSck.java:435)

Possible Solution: Check whether totalBlocks equal to 0 in line 563 of DFSck.java

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (HADOOP-154) fsck fails when there is no file in dfs

Posted by "Andrzej Bialecki (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HADOOP-154?page=all ]
     
Andrzej Bialecki  closed HADOOP-154:
------------------------------------

    Resolution: Fixed

Fixed. Thank you!

> fsck fails when there is no file in dfs
> ---------------------------------------
>
>          Key: HADOOP-154
>          URL: http://issues.apache.org/jira/browse/HADOOP-154
>      Project: Hadoop
>         Type: Bug

>   Components: dfs
>     Versions: 0.1.1
>     Reporter: Lei Chen
>     Priority: Trivial

>
> First type in command
>     
>      hadoop namenode -format
> Then 
>      hadoop fsck /
> Then is the following exception:
> Exception in thread "main" java.lang.ArithmeticException: / by zero
>         at org.apache.hadoop.dfs.DFSck$Result.toString(DFSck.java:563)
>         at java.lang.String.valueOf(String.java:2577)
>         at java.io.PrintStream.print(PrintStream.java:616)
>         at java.io.PrintStream.println(PrintStream.java:753)
>         at org.apache.hadoop.dfs.DFSck.main(DFSck.java:435)
> Possible Solution: Check whether totalBlocks equal to 0 in line 563 of DFSck.java

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira