|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.dfs.NamenodeFsck
public class NamenodeFsck
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:
FIXING_NONE)FIXING_MOVE). Remaining data blocks are saved as a
block chains, representing longest consecutive series of valid blocks.FIXING_DELETE)
| Nested Class Summary | |
|---|---|
static class |
NamenodeFsck.FsckResult
FsckResult of checking, plus overall DFS statistics. |
| Field Summary | |
|---|---|
static int |
FIXING_DELETE
Delete corrupted files. |
static int |
FIXING_MOVE
Move corrupted files to /lost+found . |
static int |
FIXING_NONE
Don't attempt any fixing . |
static org.apache.commons.logging.Log |
LOG
|
| Constructor Summary | |
|---|---|
NamenodeFsck(Configuration conf,
NameNode nn,
Map<String,String[]> pmap,
javax.servlet.http.HttpServletResponse response)
Filesystem checker. |
|
| Method Summary | |
|---|---|
void |
fsck()
Check files on DFS, starting from the indicated path. |
int |
run(String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.commons.logging.Log LOG
public static final int FIXING_NONE
public static final int FIXING_MOVE
public static final int FIXING_DELETE
| Constructor Detail |
|---|
public NamenodeFsck(Configuration conf,
NameNode nn,
Map<String,String[]> pmap,
javax.servlet.http.HttpServletResponse response)
throws IOException
conf - configuration (namenode config)nn - namenode that this fsck is going to usepmap - key=value[] map that is passed to the http servlet as url parametersresponse - the object into which this servelet writes the url contents
IOException| Method Detail |
|---|
public void fsck()
throws IOException
Exception
IOException
public int run(String[] args)
throws Exception
args -
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||