@InterfaceAudience.LimitedPrivate(value="Configuration") @InterfaceStability.Evolving public class SnapshotScannerHDFSAclCleaner extends BaseHFileCleanerDelegate
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
private HMaster |
master |
private boolean |
userScanSnapshotEnabled |
Constructor and Description |
---|
SnapshotScannerHDFSAclCleaner() |
Modifier and Type | Method and Description |
---|---|
void |
init(Map<String,Object> params)
this method is used to pass some instance into subclass
|
(package private) static boolean |
isArchiveDataDir(org.apache.hadoop.fs.Path path) |
(package private) static boolean |
isArchiveNamespaceDir(org.apache.hadoop.fs.Path path) |
(package private) static boolean |
isArchiveTableDir(org.apache.hadoop.fs.Path path) |
private boolean |
isEmptyArchiveDirDeletable(org.apache.hadoop.fs.Path dir) |
boolean |
isEmptyDirDeletable(org.apache.hadoop.fs.Path dir)
Check if a empty directory with no subdirs or subfiles can be deleted
|
protected boolean |
isFileDeletable(org.apache.hadoop.fs.FileStatus fStat)
Should the master delete the file or keep it?
|
private boolean |
namespaceExists(String namespace) |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
private boolean |
tableExists(TableName tableName) |
isStopped, stop
getDeletableFiles
getConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
preClean
private static final org.slf4j.Logger LOG
private boolean userScanSnapshotEnabled
public SnapshotScannerHDFSAclCleaner()
public void init(Map<String,Object> params)
FileCleanerDelegate
init
in interface FileCleanerDelegate
init
in class BaseFileCleanerDelegate
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
setConf
in class BaseConfigurable
protected boolean isFileDeletable(org.apache.hadoop.fs.FileStatus fStat)
BaseFileCleanerDelegate
isFileDeletable
in class BaseFileCleanerDelegate
fStat
- file status of the file to checkpublic boolean isEmptyDirDeletable(org.apache.hadoop.fs.Path dir)
FileCleanerDelegate
dir
- Path of the directoryprivate boolean isEmptyArchiveDirDeletable(org.apache.hadoop.fs.Path dir)
@InterfaceAudience.Private static boolean isArchiveDataDir(org.apache.hadoop.fs.Path path)
@InterfaceAudience.Private static boolean isArchiveNamespaceDir(org.apache.hadoop.fs.Path path)
@InterfaceAudience.Private static boolean isArchiveTableDir(org.apache.hadoop.fs.Path path)
private boolean namespaceExists(String namespace) throws IOException
IOException
private boolean tableExists(TableName tableName) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.