@InterfaceAudience.Public @InterfaceStability.Stable public class LoadIncrementalHFiles extends Configured
usage()
Modifier and Type | Field and Description |
---|---|
static String |
CREATE_TABLE_CONF_KEY |
static String |
MAX_FILES_PER_REGION_PER_FAMILY |
static String |
NAME |
Constructor and Description |
---|
LoadIncrementalHFiles(Configuration conf) |
Modifier and Type | Method and Description |
---|---|
protected void |
bulkLoadPhase(Table table,
Connection conn,
ExecutorService pool,
Deque<org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.LoadQueueItem> queue,
<any> regionGroups)
This takes the LQI's grouped by likely regions and attempts to bulk load
them.
|
void |
doBulkLoad(Path hfofDir,
Admin admin,
Table table,
RegionLocator regionLocator)
Perform a bulk load of the given directory into the given
pre-existing table.
|
void |
doBulkLoad(Path hfofDir,
HTable table)
Perform a bulk load of the given directory into the given
pre-existing table.
|
protected List<org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.LoadQueueItem> |
groupOrSplit(<any> regionGroups,
org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.LoadQueueItem item,
Table table,
Pair<byte[][],byte[][]> startEndKeys)
Attempt to assign the given load queue item into its target region group.
|
static byte[][] |
inferBoundaries(TreeMap<byte[],Integer> bdryMap) |
static void |
main(String[] args) |
int |
run(String[] args) |
protected List<org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.LoadQueueItem> |
splitStoreFile(org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.LoadQueueItem item,
Table table,
byte[] startKey,
byte[] splitKey) |
protected List<org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.LoadQueueItem> |
tryAtomicRegionLoad(Connection conn,
TableName tableName,
byte[] first,
Collection<org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.LoadQueueItem> lqis)
Attempts to do an atomic load of many hfiles into a region.
|
protected List<org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.LoadQueueItem> |
tryAtomicRegionLoad(HConnection conn,
byte[] tableName,
byte[] first,
Collection<org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.LoadQueueItem> lqis)
Deprecated.
As of release 0.96
(HBASE-9508).
This will be removed in HBase 2.0.0.
Use
tryAtomicRegionLoad(Connection, TableName, byte[], Collection) . |
public static final String NAME
public static final String MAX_FILES_PER_REGION_PER_FAMILY
public static final String CREATE_TABLE_CONF_KEY
public void doBulkLoad(Path hfofDir, HTable table) throws TableNotFoundException, IOException
hfofDir
- the directory that was provided as the output path
of a job using HFileOutputFormattable
- the table to load intoTableNotFoundException
- if table does not yet existIOException
public void doBulkLoad(Path hfofDir, Admin admin, Table table, RegionLocator regionLocator) throws TableNotFoundException, IOException
hfofDir
- the directory that was provided as the output path
of a job using HFileOutputFormattable
- the table to load intoTableNotFoundException
- if table does not yet existIOException
protected void bulkLoadPhase(Table table, Connection conn, ExecutorService pool, Deque<org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.LoadQueueItem> queue, <any> regionGroups) throws IOException
IOException
protected List<org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.LoadQueueItem> splitStoreFile(org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.LoadQueueItem item, Table table, byte[] startKey, byte[] splitKey) throws IOException
IOException
protected List<org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.LoadQueueItem> groupOrSplit(<any> regionGroups, org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.LoadQueueItem item, Table table, Pair<byte[][],byte[][]> startEndKeys) throws IOException
IOException
@Deprecated protected List<org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.LoadQueueItem> tryAtomicRegionLoad(HConnection conn, byte[] tableName, byte[] first, Collection<org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.LoadQueueItem> lqis) throws IOException
tryAtomicRegionLoad(Connection, TableName, byte[], Collection)
.IOException
protected List<org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.LoadQueueItem> tryAtomicRegionLoad(Connection conn, TableName tableName, byte[] first, Collection<org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.LoadQueueItem> lqis) throws IOException
IOException