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

Reply via email to