Database Reference
In-Depth Information
The static void checkHBaseAvailable(Configuration conf) command checks
whether remote HBase is running and available for the client, based on the
coniguration passed as the parameter and throws an exception if not. The following
are the methods for cluster operations:
closeRegion(byte[] regionname, String serverName)
closeRegion(ServerName sn, HRegionInfo hri)
closeRegion(String regionname, String serverName)
closeRegionWithEncodedRegionName(String encodedRegionName, String
serverName)
The preceding methods are used to close regions that have been deployed to
region servers. An Enable table has all regions enabled that need to be closed
and undeployed.
void flush(String tableNameOrRegionName)
void flush(byte[] tableNameOrRegionName)
The preceding methods update the region or table with unlushed data accumulated
in the MemStore instances of the region on a region server. The client application can
also use the preceding methods synchronously to lush such pending records to disk
before they are implicitly written.
void compact(String tableNameOrRegionName)
compact(String tableOrRegionName, String columnFamily)
void compact(byte[] tableNameOrRegionName)
compact(byte[] tableNameOrRegionName, byte[] columnFamily)
Similar to the previous operations, using the preceding methods' compaction
operation can also be called by the client asynchronously, as compactions usually
take a long time to complete. The compaction operation queues the table or region
for compaction, which is executed in the background by the server hosting the
named region, or by all servers hosting any region of the given table:
void split(String tableNameOrRegionName)
void split(byte[] tableNameOrRegionName)
void split(String tableNameOrRegionName, String splitPoint)
void split(byte[] tableNameOrRegionName, byte[] splitPoint)
 
Search WWH ::




Custom Search