|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.master.MasterFileSystem
public class MasterFileSystem
This class abstracts a bunch of operations the HMaster needs to interact with the underlying file system, including splitting log files, checking file system status, etc.
Constructor Summary | |
---|---|
MasterFileSystem(Server master,
MasterServices services,
MasterMetrics metrics)
|
Method Summary | |
---|---|
HTableDescriptor |
addColumn(byte[] tableName,
HColumnDescriptor hcd)
Add column to a table |
boolean |
checkFileSystem()
Checks to see if the file system is still accessible. |
void |
createTableDescriptor(HTableDescriptor htableDescriptor)
Create new HTableDescriptor in HDFS. |
HTableDescriptor |
deleteColumn(byte[] tableName,
byte[] familyName)
Delete column of a table |
void |
deleteRegion(HRegionInfo region)
|
void |
deleteTable(byte[] tableName)
|
String |
getClusterId()
|
org.apache.hadoop.fs.FileSystem |
getFileSystem()
|
org.apache.hadoop.fs.Path |
getOldLogDir()
Get the directory where old logs go |
org.apache.hadoop.fs.Path |
getRootDir()
|
HTableDescriptor |
modifyColumn(byte[] tableName,
HColumnDescriptor hcd)
Modify Column of a table |
static void |
setInfoFamilyCachingForMeta(boolean b)
Enable in memory caching for .META. |
static void |
setInfoFamilyCachingForRoot(boolean b)
Enable in-memory caching for -ROOT- |
void |
splitLog(List<ServerName> serverNames)
|
void |
splitLog(ServerName serverName)
|
void |
stop()
|
void |
updateRegionInfo(HRegionInfo region)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MasterFileSystem(Server master, MasterServices services, MasterMetrics metrics) throws IOException
IOException
Method Detail |
---|
public org.apache.hadoop.fs.FileSystem getFileSystem()
public org.apache.hadoop.fs.Path getOldLogDir()
public boolean checkFileSystem()
public org.apache.hadoop.fs.Path getRootDir()
public String getClusterId()
public void splitLog(ServerName serverName) throws IOException
IOException
public void splitLog(List<ServerName> serverNames) throws IOException
IOException
public static void setInfoFamilyCachingForRoot(boolean b)
public static void setInfoFamilyCachingForMeta(boolean b)
public void deleteRegion(HRegionInfo region) throws IOException
IOException
public void deleteTable(byte[] tableName) throws IOException
IOException
public void updateRegionInfo(HRegionInfo region)
public void stop()
public void createTableDescriptor(HTableDescriptor htableDescriptor) throws IOException
htableDescriptor
-
IOException
public HTableDescriptor deleteColumn(byte[] tableName, byte[] familyName) throws IOException
tableName
- familyName
-
IOException
public HTableDescriptor modifyColumn(byte[] tableName, HColumnDescriptor hcd) throws IOException
tableName
- hcd
- HColumnDesciptor
IOException
public HTableDescriptor addColumn(byte[] tableName, HColumnDescriptor hcd) throws IOException
tableName
- hcd
-
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |