@InterfaceAudience.LimitedPrivate(value="Tools") public class BulkLoadHFilesTool extends LoadIncrementalHFiles implements BulkLoadHFiles
BulkLoadHFiles
, and also can be executed from command line as a
tool.LoadIncrementalHFiles.LoadQueueItem
BulkLoadHFiles.LoadQueueItem
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
ALWAYS_COPY_FILES, CREATE_TABLE_CONF_KEY, IGNORE_UNMATCHED_CF_CONF_KEY, MAX_FILES_PER_REGION_PER_FAMILY, RETRY_ON_IO_EXCEPTION, TMP_DIR
ALWAYS_COPY_FILES, ASSIGN_SEQ_IDS, BULK_LOAD_HFILES_BY_FAMILY, CREATE_TABLE_CONF_KEY, IGNORE_UNMATCHED_CF_CONF_KEY, MAX_FILES_PER_REGION_PER_FAMILY, RETRY_ON_IO_EXCEPTION
Constructor and Description |
---|
BulkLoadHFilesTool(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
Map<BulkLoadHFiles.LoadQueueItem,ByteBuffer> |
bulkLoad(TableName tableName,
Map<byte[],List<org.apache.hadoop.fs.Path>> family2Files)
Perform a bulk load of the given directory into the given pre-existing table.
|
Map<BulkLoadHFiles.LoadQueueItem,ByteBuffer> |
bulkLoad(TableName tableName,
org.apache.hadoop.fs.Path dir)
Perform a bulk load of the given directory into the given pre-existing table.
|
private Map<BulkLoadHFiles.LoadQueueItem,ByteBuffer> |
convert(Map<LoadIncrementalHFiles.LoadQueueItem,ByteBuffer> map) |
static void |
main(String[] args) |
buildClientServiceCallable, bulkLoadPhase, disableReplication, doBulkLoad, doBulkLoad, doBulkLoad, groupOrSplit, inferBoundaries, loadHFileQueue, loadHFileQueue, prepareHFileQueue, prepareHFileQueue, prepareHFileQueue, run, run, run, run, setBulkToken, setClusterIds, splitStoreFile, tryAtomicRegionLoad, tryAtomicRegionLoad
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
public static final String NAME
public BulkLoadHFilesTool(org.apache.hadoop.conf.Configuration conf)
private Map<BulkLoadHFiles.LoadQueueItem,ByteBuffer> convert(Map<LoadIncrementalHFiles.LoadQueueItem,ByteBuffer> map)
public Map<BulkLoadHFiles.LoadQueueItem,ByteBuffer> bulkLoad(TableName tableName, Map<byte[],List<org.apache.hadoop.fs.Path>> family2Files) throws TableNotFoundException, IOException
BulkLoadHFiles
bulkLoad
in interface BulkLoadHFiles
tableName
- the table to load intofamily2Files
- map of family to List of hfilesTableNotFoundException
- if table does not yet existIOException
public Map<BulkLoadHFiles.LoadQueueItem,ByteBuffer> bulkLoad(TableName tableName, org.apache.hadoop.fs.Path dir) throws TableNotFoundException, IOException
BulkLoadHFiles
bulkLoad
in interface BulkLoadHFiles
tableName
- the table to load intodir
- the directory that was provided as the output path of a job using
HFileOutputFormat
TableNotFoundException
- if table does not yet existIOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.