@InterfaceAudience.Private public class MasterFileSystem extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
HBASE_DIR_PERMS
Parameter name for HBase instance root directory permission
|
static String |
HBASE_WAL_DIR_PERMS
Parameter name for HBase WAL directory permission
|
| 构造器和说明 |
|---|
MasterFileSystem(org.apache.hadoop.conf.Configuration conf) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
deleteFamilyFromFS(org.apache.hadoop.fs.Path rootDir,
RegionInfo region,
byte[] familyName) |
void |
deleteFamilyFromFS(RegionInfo region,
byte[] familyName) |
ClusterId |
getClusterId() |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
org.apache.hadoop.fs.FileSystem |
getFileSystem() |
org.apache.hadoop.fs.Path |
getRegionDir(RegionInfo region) |
org.apache.hadoop.fs.Path |
getRootDir() |
org.apache.hadoop.fs.Path |
getTempDir() |
protected org.apache.hadoop.fs.FileSystem |
getWALFileSystem() |
org.apache.hadoop.fs.Path |
getWALRootDir() |
void |
logFileSystemState(org.slf4j.Logger log) |
static TableDescriptor |
setInfoFamilyCachingForMeta(TableDescriptor metaDescriptor,
boolean b)
Enable in memory caching for hbase:meta
|
void |
stop() |
public static final String HBASE_DIR_PERMS
public MasterFileSystem(org.apache.hadoop.conf.Configuration conf)
throws IOException
IOExceptionpublic org.apache.hadoop.fs.FileSystem getFileSystem()
protected org.apache.hadoop.fs.FileSystem getWALFileSystem()
public org.apache.hadoop.conf.Configuration getConfiguration()
public org.apache.hadoop.fs.Path getRootDir()
public org.apache.hadoop.fs.Path getWALRootDir()
getRootDir() but can be
different if hfiles on one fs and WALs on another. The 'WALs' dir gets made underneath
the root dir returned here; i.e. this is '/hbase', not '/hbase/WALs'.public org.apache.hadoop.fs.Path getRegionDir(RegionInfo region)
region.public org.apache.hadoop.fs.Path getTempDir()
public ClusterId getClusterId()
public static TableDescriptor setInfoFamilyCachingForMeta(TableDescriptor metaDescriptor, boolean b)
public void deleteFamilyFromFS(RegionInfo region, byte[] familyName) throws IOException
IOExceptionpublic void deleteFamilyFromFS(org.apache.hadoop.fs.Path rootDir,
RegionInfo region,
byte[] familyName)
throws IOException
IOExceptionpublic void stop()
public void logFileSystemState(org.slf4j.Logger log)
throws IOException
IOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.