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, setConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConf, setConf
public DFSck(Configuration conf) throws IOException
conf
- current ConfigurationIOException
public int run(String[] args) throws IOException
Tool
run
在接口中 Tool
args
- IOException
Copyright © 2009 The Apache Software Foundation