@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 |
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> |
getFailures() |
int |
getHFilesChecked() |
Collection<org.apache.hadoop.fs.Path> |
getMissing() |
Collection<org.apache.hadoop.fs.Path> |
getQuarantined() |
void |
report(HBaseFsck.ErrorReporter out)
Print a human readable summary of hfile quarantining operations.
|
public HFileCorruptionChecker(org.apache.hadoop.conf.Configuration conf, ExecutorService executor, boolean quarantine) throws IOException
IOException
protected void checkHFile(org.apache.hadoop.fs.Path p) throws IOException
p
- full Path to an HFileIOException
- This is a connectivity related exceptionprotected void checkColFamDir(org.apache.hadoop.fs.Path cfDir) throws IOException
cfDir
- column family directoryIOException
protected void checkRegionDir(org.apache.hadoop.fs.Path regionDir) throws IOException
regionDir
- region directoryIOException
public void checkTables(Collection<org.apache.hadoop.fs.Path> tables) throws IOException
IOException
public 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 void report(HBaseFsck.ErrorReporter out)
out
- Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.