@InterfaceAudience.Public
@InterfaceStability.Stable
public class LoadIncrementalHFiles
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
usage()| Constructor and Description |
|---|
LoadIncrementalHFiles(org.apache.hadoop.conf.Configuration conf) |
public static final String NAME
public void doBulkLoad(org.apache.hadoop.fs.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 existIOExceptionprotected void bulkLoadPhase(HTable table, HConnection conn, ExecutorService pool, Deque<org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.LoadQueueItem> queue, com.google.common.collect.Multimap<ByteBuffer,org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.LoadQueueItem> regionGroups) throws IOException
IOExceptionprotected List<org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.LoadQueueItem> splitStoreFile(org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.LoadQueueItem item, HTable table, byte[] startKey, byte[] splitKey) throws IOException
IOExceptionprotected List<org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.LoadQueueItem> groupOrSplit(com.google.common.collect.Multimap<ByteBuffer,org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.LoadQueueItem> regionGroups, org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.LoadQueueItem item, HTable 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(HConnection, TableName, byte[], Collection)IOExceptionprotected List<org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.LoadQueueItem> tryAtomicRegionLoad(HConnection conn, TableName tableName, byte[] first, Collection<org.apache.hadoop.hbase.mapreduce.LoadIncrementalHFiles.LoadQueueItem> lqis) throws IOException
IOExceptionpublic int run(String[] args) throws Exception
run in interface org.apache.hadoop.util.ToolExceptionCopyright © 2013 The Apache Software Foundation. All Rights Reserved.