|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hdfs.server.namenode.NamenodeFsck
@InterfaceAudience.Private 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
)
Field Summary | |
---|---|
static String |
CORRUPT_STATUS
|
static String |
FAILURE_STATUS
|
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 String |
HEALTHY_STATUS
|
static org.apache.commons.logging.Log |
LOG
|
static String |
NONEXISTENT_STATUS
|
Method Summary | |
---|---|
void |
fsck()
Check files on DFS, starting from the indicated path. |
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 String CORRUPT_STATUS
public static final String HEALTHY_STATUS
public static final String NONEXISTENT_STATUS
public static final String FAILURE_STATUS
public static final int FIXING_NONE
public static final int FIXING_MOVE
public static final int FIXING_DELETE
Method Detail |
---|
public void fsck()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |