@InterfaceAudience.LimitedPrivate(value="Tools") public class BulkLoadHFilesTool extends LoadIncrementalHFiles implements BulkLoadHFiles
BulkLoadHFiles, and also can be executed from command line as a
tool.LoadIncrementalHFiles.LoadQueueItemBulkLoadHFiles.LoadQueueItem| 限定符和类型 | 字段和说明 |
|---|---|
static String |
NAME |
ALWAYS_COPY_FILES, CREATE_TABLE_CONF_KEY, IGNORE_UNMATCHED_CF_CONF_KEY, MAX_FILES_PER_REGION_PER_FAMILYALWAYS_COPY_FILES, ASSIGN_SEQ_IDS, CREATE_TABLE_CONF_KEY, IGNORE_UNMATCHED_CF_CONF_KEY, MAX_FILES_PER_REGION_PER_FAMILY, RETRY_ON_IO_EXCEPTION| 构造器和说明 |
|---|
BulkLoadHFilesTool(org.apache.hadoop.conf.Configuration conf) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
static void |
main(String[] args) |
buildClientServiceCallable, bulkLoadPhase, disableReplication, doBulkLoad, doBulkLoad, doBulkLoad, groupOrSplit, inferBoundaries, loadHFileQueue, loadHFileQueue, prepareHFileQueue, prepareHFileQueue, prepareHFileQueue, run, run, run, run, setBulkToken, setClusterIds, tryAtomicRegionLoadclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatepublic Map<BulkLoadHFiles.LoadQueueItem,ByteBuffer> bulkLoad(TableName tableName, Map<byte[],List<org.apache.hadoop.fs.Path>> family2Files) throws TableNotFoundException, IOException
BulkLoadHFilesbulkLoad 在接口中 BulkLoadHFilestableName - the table to load intofamily2Files - map of family to List of hfilesTableNotFoundException - if table does not yet existIOExceptionpublic Map<BulkLoadHFiles.LoadQueueItem,ByteBuffer> bulkLoad(TableName tableName, org.apache.hadoop.fs.Path dir) throws TableNotFoundException, IOException
BulkLoadHFilesbulkLoad 在接口中 BulkLoadHFilestableName - the table to load intodir - the directory that was provided as the output path of a job using
HFileOutputFormatTableNotFoundException - if table does not yet existIOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.