@InterfaceAudience.Private public class MetaUtils extends Object
shutdown()
when done with this class so it closes
resources opened during meta processing (ROOT, META, etc.). Be careful
how you use this class. If used during migrations, be careful when using
this class to check whether migration is needed.Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.conf.Configuration |
conf |
private FSTableDescriptors |
descriptors |
private org.apache.hadoop.fs.FileSystem |
fs |
private static org.apache.commons.logging.Log |
LOG |
private HRegion |
metaRegion |
private Map<byte[],HRegion> |
metaRegions |
private WALFactory |
walFactory |
Constructor and Description |
---|
MetaUtils()
Default constructor
|
MetaUtils(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
WAL |
getLog(HRegionInfo info) |
HRegion |
getMetaRegion() |
private void |
initialize()
Verifies that DFS is available and that HBase is off-line.
|
private HRegion |
openMetaRegion() |
void |
shutdown()
Closes catalog regions if open.
|
private static final org.apache.commons.logging.Log LOG
private final org.apache.hadoop.conf.Configuration conf
private final FSTableDescriptors descriptors
private org.apache.hadoop.fs.FileSystem fs
private WALFactory walFactory
private HRegion metaRegion
public MetaUtils() throws IOException
IOException
- epublic MetaUtils(org.apache.hadoop.conf.Configuration conf) throws IOException
conf
- ConfigurationIOException
- eprivate void initialize() throws IOException
IOException
- epublic WAL getLog(HRegionInfo info) throws IOException
IOException
- epublic HRegion getMetaRegion() throws IOException
IOException
- epublic void shutdown()
private HRegion openMetaRegion() throws IOException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.