org.apache.hadoop.dfs
Class DFSck

java.lang.Object
  extended by org.apache.hadoop.util.ToolBase
      extended by org.apache.hadoop.dfs.DFSck
All Implemented Interfaces:
Configurable, Tool

public class DFSck
extends ToolBase

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.

Author:
Andrzej Bialecki

Field Summary
 
Fields inherited from class org.apache.hadoop.util.ToolBase
conf
 
Constructor Summary
DFSck(Configuration conf)
          Filesystem checker.
 
Method Summary
static void main(String[] args)
           
 int run(String[] args)
          execute the command with the given arguments
 
Methods inherited from class org.apache.hadoop.util.ToolBase
doMain, getConf, setConf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DFSck

public DFSck(Configuration conf)
      throws Exception
Filesystem checker.

Parameters:
conf - current Configuration
Throws:
Exception
Method Detail

run

public int run(String[] args)
        throws Exception
Description copied from interface: Tool
execute the command with the given arguments

Parameters:
args -
Returns:
exit code
Throws:
Exception

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2006 The Apache Software Foundation