|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.HMaster
public class HMaster
HMaster is the "master server" for a HBase. There is only one HMaster for a single HBase deployment.
Field Summary |
---|
Fields inherited from interface org.apache.hadoop.hbase.HMasterInterface |
---|
versionID |
Fields inherited from interface org.apache.hadoop.hbase.HMasterRegionInterface |
---|
versionID |
Constructor Summary | |
---|---|
HMaster(Configuration conf)
Build the HMaster out of a raw configuration item. |
|
HMaster(Path dir,
HServerAddress address,
Configuration conf)
Build the HMaster |
Method Summary | |
---|---|
void |
addColumn(Text tableName,
HColumnDescriptor column)
|
void |
createTable(HTableDescriptor desc)
|
void |
deleteColumn(Text tableName,
Text columnName)
|
void |
deleteTable(Text tableName)
|
void |
disableTable(Text tableName)
|
void |
enableTable(Text tableName)
|
HServerAddress |
findRootRegion()
|
HServerAddress |
getMasterAddress()
|
long |
getProtocolVersion(String protocol,
long clientVersion)
Return protocol version corresponding to protocol interface. |
boolean |
isMasterRunning()
|
static void |
main(String[] args)
Main program |
HMsg[] |
regionServerReport(HServerInfo serverInfo,
HMsg[] msgs)
|
void |
regionServerStartup(HServerInfo serverInfo)
|
void |
run()
Main processing loop |
void |
shutdown()
Shutdown an HBase cluster. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HMaster(Configuration conf) throws IOException
conf
- - Configuration object
IOException
public HMaster(Path dir, HServerAddress address, Configuration conf) throws IOException
dir
- - base directoryaddress
- - server address and port numberconf
- - configuration
IOException
Method Detail |
---|
public long getProtocolVersion(String protocol, long clientVersion) throws IOException
getProtocolVersion
in interface VersionedProtocol
protocol
- The classname of the protocol interfaceclientVersion
- The version of the protocol that the client speaks
IOException
public HServerAddress getMasterAddress()
public void run()
run
in interface Runnable
public void regionServerStartup(HServerInfo serverInfo) throws IOException
regionServerStartup
in interface HMasterRegionInterface
IOException
public HMsg[] regionServerReport(HServerInfo serverInfo, HMsg[] msgs) throws IOException
regionServerReport
in interface HMasterRegionInterface
IOException
public boolean isMasterRunning()
isMasterRunning
in interface HMasterInterface
public void shutdown()
shutdown
in interface HMasterInterface
public void createTable(HTableDescriptor desc) throws IOException
createTable
in interface HMasterInterface
IOException
public void deleteTable(Text tableName) throws IOException
deleteTable
in interface HMasterInterface
IOException
public void addColumn(Text tableName, HColumnDescriptor column) throws IOException
addColumn
in interface HMasterInterface
IOException
public void deleteColumn(Text tableName, Text columnName) throws IOException
deleteColumn
in interface HMasterInterface
IOException
public void enableTable(Text tableName) throws IOException
enableTable
in interface HMasterInterface
IOException
public void disableTable(Text tableName) throws IOException
disableTable
in interface HMasterInterface
IOException
public HServerAddress findRootRegion()
findRootRegion
in interface HMasterInterface
public static void main(String[] args)
args
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |