@InterfaceAudience.Private public class HFileCorruptionChecker extends Object
| Constructor and Description |
|---|
HFileCorruptionChecker(org.apache.hadoop.conf.Configuration conf,
ExecutorService executor,
boolean quarantine) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkColFamDir(org.apache.hadoop.fs.Path cfDir)
Check all files in a column family dir.
|
protected void |
checkHFile(org.apache.hadoop.fs.Path p)
Checks a path to see if it is a valid hfile.
|
protected void |
checkMobColFamDir(org.apache.hadoop.fs.Path cfDir)
Check all files in a mob column family dir.
|
protected void |
checkMobFile(org.apache.hadoop.fs.Path p)
Checks a path to see if it is a valid mob file.
|
protected void |
checkRegionDir(org.apache.hadoop.fs.Path regionDir)
Check all column families in a region dir.
|
void |
checkTables(Collection<org.apache.hadoop.fs.Path> tables)
Check the specified table dirs for bad hfiles.
|
Collection<org.apache.hadoop.fs.Path> |
getCorrupted()
Returns the set of corrupted file paths after checkTables is called.
|
Collection<org.apache.hadoop.fs.Path> |
getCorruptedMobFiles()
Returns the set of corrupted mob file paths after checkTables is called.
|
Collection<org.apache.hadoop.fs.Path> |
getFailureMobFiles()
Returns the set of check failure mob file paths after checkTables is called.
|
Collection<org.apache.hadoop.fs.Path> |
getFailures()
Returns the set of check failure file paths after checkTables is called.
|
int |
getHFilesChecked()
Returns number of hfiles checked in the last HfileCorruptionChecker run
|
Collection<org.apache.hadoop.fs.Path> |
getMissedMobFiles() |
Collection<org.apache.hadoop.fs.Path> |
getMissing() |
int |
getMobFilesChecked()
Returns number of mob files checked in the last HfileCorruptionChecker run
|
Collection<org.apache.hadoop.fs.Path> |
getQuarantined()
Returns the set of successfully quarantined paths after checkTables is called.
|
Collection<org.apache.hadoop.fs.Path> |
getQuarantinedMobFiles()
Returns the set of successfully quarantined paths after checkTables is called.
|
void |
report(HbckErrorReporter out)
Print a human readable summary of hfile quarantining operations.
|
public HFileCorruptionChecker(org.apache.hadoop.conf.Configuration conf,
ExecutorService executor,
boolean quarantine)
throws IOException
IOExceptionprotected void checkHFile(org.apache.hadoop.fs.Path p)
throws IOException
IOExceptionprotected void checkColFamDir(org.apache.hadoop.fs.Path cfDir)
throws IOException
IOExceptionprotected void checkMobColFamDir(org.apache.hadoop.fs.Path cfDir)
throws IOException
IOExceptionprotected void checkMobFile(org.apache.hadoop.fs.Path p)
throws IOException
IOExceptionprotected void checkRegionDir(org.apache.hadoop.fs.Path regionDir)
throws IOException
IOExceptionpublic void checkTables(Collection<org.apache.hadoop.fs.Path> tables) throws IOException
IOExceptionpublic Collection<org.apache.hadoop.fs.Path> getFailures()
public Collection<org.apache.hadoop.fs.Path> getCorrupted()
public int getHFilesChecked()
public Collection<org.apache.hadoop.fs.Path> getQuarantined()
public Collection<org.apache.hadoop.fs.Path> getMissing()
public Collection<org.apache.hadoop.fs.Path> getFailureMobFiles()
public Collection<org.apache.hadoop.fs.Path> getCorruptedMobFiles()
public int getMobFilesChecked()
public Collection<org.apache.hadoop.fs.Path> getQuarantinedMobFiles()
public Collection<org.apache.hadoop.fs.Path> getMissedMobFiles()
public void report(HbckErrorReporter out)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.