org.apache.hadoop.dfs
Class DFSck

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

public class DFSck
extends Configured
implements Tool

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. The tool also provides and option to filter open files during the scan.


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.conf.Configured
getConf, setConf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
 

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.

Specified by:
run in interface Tool
Parameters:
args -
Returns:
exit code.
Throws:
Exception

main

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


Copyright © 2008 The Apache Software Foundation