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)| 构造器和说明 |
|---|
DFSck(Configuration conf)
Filesystem checker.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
main(String[] args) |
int |
run(String[] args)
Execute the command with the given arguments.
|
getConf, setConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConf, setConfpublic DFSck(Configuration conf) throws IOException
conf - current ConfigurationIOExceptionpublic int run(String[] args) throws IOException
Toolrun 在接口中 Toolargs - IOExceptionCopyright © 2009 The Apache Software Foundation