|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HMasterInterface
Clients interact with the HMasterInterface to gain access to meta-level HBase functionality, like finding an HRegionServer and creating/destroying tables.
NOTE: if you change the interface, you must change the RPC version number in HBaseRPCProtocolVersion
| Field Summary |
|---|
| Fields inherited from interface org.apache.hadoop.hbase.ipc.HBaseRPCProtocolVersion |
|---|
versionID |
| Method Summary | |
|---|---|
void |
addColumn(byte[] tableName,
HColumnDescriptor column)
Adds a column to the specified table |
void |
createTable(HTableDescriptor desc,
byte[][] splitKeys)
Creates a new table. |
void |
deleteColumn(byte[] tableName,
byte[] columnName)
Deletes a column from the specified table. |
void |
deleteTable(byte[] tableName)
Deletes a table |
void |
disableTable(byte[] tableName)
Take table offline |
void |
enableTable(byte[] tableName)
Puts the table on-line (only needed if table has been previously taken offline) |
ClusterStatus |
getClusterStatus()
Return cluster status. |
boolean |
isMasterRunning()
|
void |
modifyColumn(byte[] tableName,
byte[] columnName,
HColumnDescriptor descriptor)
Modifies an existing column on the specified table |
void |
modifyTable(byte[] tableName,
HConstants.Modify op,
org.apache.hadoop.io.Writable[] args)
Modify a table's metadata |
void |
shutdown()
Shutdown an HBase cluster. |
| Methods inherited from interface org.apache.hadoop.ipc.VersionedProtocol |
|---|
getProtocolVersion |
| Method Detail |
|---|
boolean isMasterRunning()
void createTable(HTableDescriptor desc,
byte[][] splitKeys)
throws IOException
desc - table descriptorsplitKeys -
IOException
void deleteTable(byte[] tableName)
throws IOException
tableName - table to delete
IOException - e
void addColumn(byte[] tableName,
HColumnDescriptor column)
throws IOException
tableName - table to modifycolumn - column descriptor
IOException - e
void modifyColumn(byte[] tableName,
byte[] columnName,
HColumnDescriptor descriptor)
throws IOException
tableName - table namecolumnName - name of the column to editdescriptor - new column descriptor
IOException - e
void deleteColumn(byte[] tableName,
byte[] columnName)
throws IOException
tableName - table to altercolumnName - column family to remove
IOException - e
void enableTable(byte[] tableName)
throws IOException
tableName - table to enable
IOException - e
void disableTable(byte[] tableName)
throws IOException
tableName - table to take offline
IOException - e
void modifyTable(byte[] tableName,
HConstants.Modify op,
org.apache.hadoop.io.Writable[] args)
throws IOException
tableName - table to modifyop - the operation to doargs - arguments for operation
IOException - e
void shutdown()
throws IOException
IOException - eClusterStatus getClusterStatus()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||