@InterfaceAudience.Private public class DFSck extends Configured implements Tool
The tool scans all files and directories, starting from an indicated root path. The following abnormal conditions are detected and handled:
org.apache.hadoop.hdfs.server.namenode.NamenodeFsck#FIXING_NONE
)org.apache.hadoop.hdfs.server.namenode.NamenodeFsck#FIXING_MOVE
). Remaining data blocks are saved as a
block chains, representing longest consecutive series of valid blocks.org.apache.hadoop.hdfs.server.namenode.NamenodeFsck#FIXING_DELETE
)Constructor and Description |
---|
DFSck(Configuration conf)
Filesystem checker.
|
DFSck(Configuration conf,
PrintStream out) |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
int |
run(String[] args)
Execute the command with the given arguments.
|
getConf, setConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConf, setConf
public DFSck(Configuration conf) throws IOException
conf
- current ConfigurationIOException
public DFSck(Configuration conf, PrintStream out) throws IOException
IOException
public int run(String[] args) throws IOException
Tool
run
in interface Tool
args
- IOException
Copyright © 2013 Apache Software Foundation. All rights reserved.