@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() |
Collection<org.apache.hadoop.fs.Path> |
getCorruptedMobFiles() |
Collection<org.apache.hadoop.fs.Path> |
getFailureMobFiles() |
Collection<org.apache.hadoop.fs.Path> |
getFailures() |
int |
getHFilesChecked() |
Collection<org.apache.hadoop.fs.Path> |
getMissedMobFiles() |
Collection<org.apache.hadoop.fs.Path> |
getMissing() |
int |
getMobFilesChecked() |
Collection<org.apache.hadoop.fs.Path> |
getQuarantined() |
Collection<org.apache.hadoop.fs.Path> |
getQuarantinedMobFiles() |
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.