org.apache.hadoop.hdfs.server.namenode
Class NamenodeFsck

java.lang.Object
  extended by org.apache.hadoop.hdfs.server.namenode.NamenodeFsck

@InterfaceAudience.Private
public class NamenodeFsck
extends Object

This class provides rudimentary checking of DFS volumes for errors and sub-optimal conditions.

The tool scans all files and directories, starting from an indicated root path. The following abnormal conditions are detected and handled:

Additionally, the tool collects a detailed overall DFS statistics, and optionally can print detailed statistics on block locations and replication factors of each file.


Field Summary
static String CORRUPT_STATUS
           
static String FAILURE_STATUS
           
static int FIXING_DELETE
          Delete corrupted files.
static int FIXING_MOVE
          Move corrupted files to /lost+found .
static int FIXING_NONE
          Don't attempt any fixing .
static String HEALTHY_STATUS
           
static org.apache.commons.logging.Log LOG
           
static String NONEXISTENT_STATUS
           
 
Method Summary
 void fsck()
          Check files on DFS, starting from the indicated path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG

CORRUPT_STATUS

public static final String CORRUPT_STATUS
See Also:
Constant Field Values

HEALTHY_STATUS

public static final String HEALTHY_STATUS
See Also:
Constant Field Values

NONEXISTENT_STATUS

public static final String NONEXISTENT_STATUS
See Also:
Constant Field Values

FAILURE_STATUS

public static final String FAILURE_STATUS
See Also:
Constant Field Values

FIXING_NONE

public static final int FIXING_NONE
Don't attempt any fixing .

See Also:
Constant Field Values

FIXING_MOVE

public static final int FIXING_MOVE
Move corrupted files to /lost+found .

See Also:
Constant Field Values

FIXING_DELETE

public static final int FIXING_DELETE
Delete corrupted files.

See Also:
Constant Field Values
Method Detail

fsck

public void fsck()
Check files on DFS, starting from the indicated path.



Copyright © 2009 The Apache Software Foundation