@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| 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_DIRALWAYS_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, initialize, loadHFileQueue, loadHFileQueue, prepareHFileQueue, prepareHFileQueue, prepareHFileQueue, run, run, run, run, setBulkToken, setClusterIds, splitStoreFile, tryAtomicRegionLoad, tryAtomicRegionLoadclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatepublic 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
BulkLoadHFilesbulkLoad in interface 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 in interface 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–2021 The Apache Software Foundation. All rights reserved.